mirror of
https://github.com/kubernetes-sigs/node-feature-discovery.git
synced 2025-03-06 16:57:10 +00:00
Don't try to be too smart when kubeconfig is needed. In practice, the nfd-master really doesn't work anymore (with the NodeFeature API enabled) without a kubeconfig set. This patch fixes crashes happening when NoPublish is enabled, e.g. in listing all nodes in the nfd api handler and in getting single node objects in the node updater pool. This patch changes the kubeconfig parsing to happen at the creation of the nfd-master instance. We don't need to do that at reconfigure time as none of the dynamic config options affect it. Unit tests are adjusted, accordingly. |
||
---|---|---|
.. | ||
apis/nfd | ||
cpuid | ||
features | ||
generated | ||
kubectl-nfd | ||
labeler | ||
nfd-gc | ||
nfd-master | ||
nfd-topology-updater | ||
nfd-worker | ||
podres | ||
resourcemonitor | ||
topologypolicy | ||
utils | ||
version |