1
0
Fork 0
mirror of https://github.com/kubernetes-sigs/node-feature-discovery.git synced 2024-12-14 11:57:51 +00:00
node-feature-discovery/source
Markus Lehtonen 8b4314bbbb source/custom: expression based label rules
Implement a framework for more flexible rule configuration and matching,
mimicking the MatchExpressions pattern from K8s nodeselector.

The basic building block is MatchExpression which contains an operator
and a list of values. The operator specifies that "function" that is
applied when evaluating a given input agains the list of values.
Available operators are:

- MatchIn
- MatchNotIn
- MatchInRegexp
- MatchExists
- MatchDoesNotExist
- MatchGt
- MatchLt
- MatchIsTrue
- MatchIsFalse

Another building block of the framework is MatchExpressionSet which is a
map of string-MatchExpression pairs. It is a helper for specifying
multiple expressions that can be matched against a set of set of
features.

This patch converts all existing custom rules to utilize the new
expression-based framework.
2021-11-11 19:59:34 +02:00
..
cpu source/cpu: implement FeatureSource 2021-11-11 18:33:40 +02:00
custom source/custom: expression based label rules 2021-11-11 19:59:34 +02:00
fake source: introduce FeatureSource interface 2021-09-20 09:58:07 +03:00
iommu source: introduce FeatureSource interface 2021-09-20 09:58:07 +03:00
kernel source/custom: move kernel module detection to source/kernel 2021-11-11 18:33:58 +02:00
local source/local: implement FeatureSource 2021-11-11 18:34:01 +02:00
memory source: introduce FeatureSource interface 2021-09-20 09:58:07 +03:00
network source: introduce FeatureSource interface 2021-09-20 09:58:07 +03:00
pci source/pci: implement FeatureSource 2021-11-11 18:33:53 +02:00
storage source: introduce FeatureSource interface 2021-09-20 09:58:07 +03:00
system source/system: implement FeatureSource 2021-11-11 18:33:58 +02:00
usb source/usb: implement FeatureSource 2021-11-11 18:33:53 +02:00
config.go topologyupdater: Bootstrap nfd-topology-updater in NFD 2021-09-21 10:47:39 +01:00
mock_LabelSource.go Merge pull request #602 from marquiz/devel/go-generate 2021-09-21 06:16:24 -07:00
source.go Merge pull request #602 from marquiz/devel/go-generate 2021-09-21 06:16:24 -07:00
source_test.go source/kernel: implement FeatureSource 2021-11-11 18:33:40 +02:00