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 237494463b nfd-worker: support creating NodeFeatures object
Support the new NodeFeatures object of the NFD CRD api. Add two new
command line options to nfd-worker:

 -kubeconfig               specifies the kubeconfig to use for
                           connecting k8s api (defaults to empty which
                           implies in-cluster config)
 -enable-nodefeature-api   enable the NodeFeature CRD API for
                           communicating node features to nfd-master,
                           will also automatically disable gRPC
                           (defgault to false)

No config file option for selecting the API is available as there should
be no need for dynamically selecting between gRPC and CRD. The
nfd-master configuration must be changed in tandem and it is safer (and
avoid awkward configuration races) to configure the whole NFD deployment
at once.

Default behavior of nfd-worker is not changed i.e. NodeFeatures object
creation is not enabled by default (but must be enabled with the command
line flag).

The patch also updates the kustomize and Helm deployment, adding RBAC
rules for nfd-worker and updating the example worker configuration.
2022-12-14 07:31:28 +02:00
..
apihelper apis/nfd: update auto-generated code 2022-10-18 18:41:53 +03:00
apis/nfd/v1alpha1 apis/nfd: update auto-generated code 2022-12-14 07:31:28 +02:00
cpuid pkg/cpuid: lint fixes 2020-05-20 21:48:06 +03:00
generated apis/nfd: update auto-generated code 2022-12-14 07:31:28 +02:00
labeler apis/nfd: update auto-generated code 2022-10-18 18:41:53 +03:00
nfd-client nfd-worker: support creating NodeFeatures object 2022-12-14 07:31:28 +02:00
nfd-master nfd-master: add error checking for CRD controller creation 2022-12-14 00:27:27 +02:00
podres topologyupdater: Bootstrap nfd-topology-updater in NFD 2021-09-21 10:47:39 +01:00
resourcemonitor update test functions according to upstream deprecated/removed methods 2022-12-13 12:12:50 +02:00
topologypolicy topologyupdater: Bootstrap nfd-topology-updater in NFD 2021-09-21 10:47:39 +01:00
utils nfd-worker: detect the namespace it is running in 2022-12-08 10:34:52 +02:00
version version: allow undefined version 2020-03-20 07:21:43 +02:00