1
0
Fork 0
mirror of https://github.com/kubernetes-sigs/node-feature-discovery.git synced 2025-03-15 13:07:48 +00:00
node-feature-discovery/docs/usage
Markus Lehtonen 3b448ae623 apis/nfd: allow different types of features of the same name
This patch changes the handling of NodeFeatureRules so that one feature
name (say "cpu.cpuid") can hold different types of features (flags,
attributes and/or instances). Requiring features to choose one single
type has not been a limitation of the API itself (and there has been no
validation on this) but an implementation decision.

The new evalutation logic of match expressions is such that "flags" and
"attributes" are basically evaluated as an union - they are both maps
but "flags" just don't have any value associated with the key. However,
"instances" are handled separately as that is basically an array of
maps and needs to be evaluated in a different way (loop over the array
of instances and evaluate expressions against the attributes of each).
Because of this difference care must be taken if mixing "instance"
features with "flag" and/or "attribute" features.

Note that the API types or their validation is not changed - just the
implementation of how the NodeFeatureRules are evaluated.
2024-05-24 13:18:31 +03:00
..
custom-resources.md docs: fixes 2023-12-21 18:34:07 +02:00
customization-guide.md apis/nfd: allow different types of features of the same name 2024-05-24 13:18:31 +03:00
examples-and-demos.md Add documentation for topology garbage collector 2023-01-11 10:15:38 +01:00
features.md Add swap support in nfd 2024-02-19 10:20:56 -05:00
index.md docs: restructure docs 2022-11-03 10:26:56 +02:00
kubectl-plugin.md docs: fixes 2023-12-21 18:34:07 +02:00
nfd-gc.md Add FeatureGate framework to handle new features 2024-03-15 19:11:32 +01:00
nfd-master.md Add FeatureGate framework to handle new features 2024-03-15 19:11:32 +01:00
nfd-topology-updater.md docs: drop "currently" 2023-12-01 15:47:18 +02:00
nfd-worker.md docs: strip out some "easily", "just" etc 2023-12-01 15:38:26 +02:00
using-labels.md docs: restructure docs 2022-11-03 10:26:56 +02:00