1
0
Fork 0
mirror of https://github.com/kubernetes-sigs/node-feature-discovery.git synced 2024-12-15 17:50:49 +00:00
node-feature-discovery/pkg/apis/nfd/v1alpha1
Feruzjon Muyassarov 2bdf427b89 nfd-master logic update for setting node taints
This commits extends NFD master code to support adding node taints
from NodeFeatureRule CR. We also introduce a new annotation for
taints which helps to identify if the taint set on node is owned
by NFD or not. When user deletes the taint entry from
NodeFeatureRule CR, NFD will remove the taint from the node. But
to avoid accidental deletion of taints not owned by the NFD, it
needs to know the owner. Keeping track of NFD set taints in the
annotation can be used during the filtering of the owner. Also
enable-taints flag is added to allow users opt in/out for node
tainting feature. The flag takes precedence over taints defined
in NodeFeatureRule CR. In other words, if enbale-taints is set to
false(disabled) and user still defines taints on the CR, NFD will
ignore those taints and skip them from setting on the node.

Signed-off-by: Feruzjon Muyassarov <feruzjon.muyassarov@intel.com>
2022-12-02 17:25:00 +02:00
..
annotations_labels.go nfd-master logic update for setting node taints 2022-12-02 17:25:00 +02:00
doc.go apis/nfd: migrate pkg/api/feature 2022-10-15 07:42:20 +03:00
expression.go apis/nfd: migrate pkg/api/feature 2022-10-15 07:42:20 +03:00
expression_test.go apis/nfd: migrate pkg/api/feature 2022-10-15 07:42:20 +03:00
feature.go apis/nfd: flatten the structure of features data type 2022-10-18 18:37:28 +03:00
generate.sh apis/nfd: migrate pkg/api/feature 2022-10-15 07:42:20 +03:00
generated.pb.go apis/nfd: update auto-generated code 2022-10-18 18:41:53 +03:00
generated.proto apis/nfd: update auto-generated code 2022-10-18 18:41:53 +03:00
register.go pkg/apis/nfd/v1alpha1: document exported symbols 2021-12-01 10:46:56 +02:00
rule.go nfd-master logic update for setting node taints 2022-12-02 17:25:00 +02:00
rule_test.go apis/nfd: fix NodeFeatureRule templating 2022-10-25 23:37:27 +03:00
types.go Add taints field to NodeFeatureRule CR spec 2022-12-02 17:25:00 +02:00
zz_generated.deepcopy.go Add taints field to NodeFeatureRule CR spec 2022-12-02 17:25:00 +02:00