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/pkg/nfd-master
Markus Lehtonen 33fdf75190 nfd-master: process labeling rules from CRs
Enable Custom Resource based label creation in nfd-master. This extends
the previously implemented controller stub for watching NodeFeatureRule
objects. NFD-master watches NodeFeatureRule objects in the cluster and
processes the rules on every incoming labeling request from workers.
The functionality relies on the "raw features" (identical to how
nfd-worker handles custom rules) submitted by nfd-worker, making it
independent of the label source configuration of the worker. This means
that the labeling functions as expected even if all sources in the
worker are disabled.

NOTE: nfd-master is stateless and re-labeling only happens on the
reception of SetLabelsRequest from the worker – i.e. on intervals
specified by the core.sleepInterval configuration option (or
-sleep-interval cmdline flag) of each nfd-worker instance. This means
that modification/creation of NodeFeatureRule objects does not
automatically update the node labels. Instead, the changes only come
visible when workers send their labeling requests.
2021-11-23 09:18:07 +02:00
..
nfd-master-internal_test.go pkg/nfd-master: fix linter errors in tests 2021-10-04 09:51:38 +03:00
nfd-master.go nfd-master: process labeling rules from CRs 2021-11-23 09:18:07 +02:00
nfd-master_test.go nfd-master: use flag for command line parsing 2021-02-24 12:06:16 +02:00
nodefeaturerule-controller.go nfd-master: implement controller for NodeFeatureRule CRs 2021-11-22 16:57:42 +02:00