1
0
Fork 0
mirror of https://github.com/kubernetes-sigs/node-feature-discovery.git synced 2025-03-16 13:28:18 +00:00
node-feature-discovery/source/custom
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
..
expression source/custom: expression based label rules 2021-11-11 19:59:34 +02:00
rules source/custom: expression based label rules 2021-11-11 19:59:34 +02:00
custom.go source/custom: expression based label rules 2021-11-11 19:59:34 +02:00
directory_features.go make golint happy 2021-06-14 12:27:58 -05:00
static_features.go source/custom: expression based label rules 2021-11-11 19:59:34 +02:00