1
0
Fork 0
mirror of https://github.com/kubernetes-sigs/node-feature-discovery.git synced 2025-03-16 21:38:23 +00:00
node-feature-discovery/docs/advanced
Markus Lehtonen 36341bf4c7 apis/nfd: empty match expression set returns no features for templates
This patch changes a rare corner case of custom label rules with an
empty set of matchexpressions. The patch removes a special case where an
empty match expression set matched everything and returned all feature
elements for templates to consume. With this patch the match expression
set logically evaluates all expressions in the set and returns all
matches - if there are no expressions there are no matches and no
matched features are returned. However, the overall match result
(determining if "non-template" labels will be created) in this special
case will be "true" as before as none of the zero match expressions
failed.

The former behavior was somewhat illogical and counterintuitive: having
1 to N expressions matched and returned 1 to N features (at most), but,
having 0 expressions always matched everything and returned all
features. This was some leftover proof-of-concept functionality (for
some possible future extensions) that should have been removed before
merging.
2022-03-24 11:43:42 +02:00
..
architecture.md docs: fix TOCs 2021-09-30 10:26:25 +03:00
customization-guide.md apis/nfd: empty match expression set returns no features for templates 2022-03-24 11:43:42 +02:00
developer-guide.md Fix a couple typos 2022-03-23 19:16:01 -04:00
e2e-configuration-reference.md docs: fix TOCs 2021-09-30 10:26:25 +03:00
index.md README: move content over to docs/ 2020-10-29 14:07:08 +02:00
master-commandline-reference.md nfd-master: add -featurerules-controller flag 2021-11-22 16:57:42 +02:00
topology-updater-commandline-reference.md More topology updater documentation typo fixes 2021-11-12 14:25:32 +02:00
worker-commandline-reference.md nfd-worker: add -feature-sources command line flag 2021-12-03 09:42:35 +02:00
worker-configuration-reference.md docs: use new custom rule format in worker config reference 2022-01-25 10:31:21 +02:00