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
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
..
api/feature grpc: extend the API to send raw features 2021-11-16 17:32:28 +02:00
apihelper pkg/apihelpers: split out loading of kubeconfig to a separate function 2021-11-22 16:57:42 +02:00
apis/nfd/v1alpha1 pkg/generated: add code for interacting with CRD API 2021-11-17 18:51:34 +02:00
cpuid pkg/cpuid: lint fixes 2020-05-20 21:48:06 +03:00
generated pkg/generated: add code for interacting with CRD API 2021-11-17 18:51:34 +02:00
kubeconf topologyupdater: Bootstrap nfd-topology-updater in NFD 2021-09-21 10:47:39 +01:00
labeler grpc: extend the API to send raw features 2021-11-16 17:32:28 +02:00
nfd-client pkg/apihelpers: split out loading of kubeconfig to a separate function 2021-11-22 16:57:42 +02:00
nfd-master nfd-master: process labeling rules from CRs 2021-11-23 09:18:07 +02:00
podres topologyupdater: Bootstrap nfd-topology-updater in NFD 2021-09-21 10:47:39 +01:00
resourcemonitor Remove fatal logging to error based on the feedback 2021-11-19 16:57:21 -05:00
topologypolicy topologyupdater: Bootstrap nfd-topology-updater in NFD 2021-09-21 10:47:39 +01:00
topologyupdater Update auto-generated code 2021-09-21 13:37:36 +03:00
utils utils: add methods to fetch NUMA nodes hugepages and memory capacity 2021-11-04 10:14:51 +02:00
version version: allow undefined version 2020-03-20 07:21:43 +02:00