1
0
Fork 0
mirror of https://github.com/kubernetes-sigs/node-feature-discovery.git synced 2025-03-06 16:57:10 +00:00
node-feature-discovery/pkg/nfd-master
Markus Lehtonen 8709cccf71 nfd-master: parse kubeconfig even with NoPublish set
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.
2024-04-08 14:25:27 +03:00
..
metrics.go Refactor metrics 2023-10-09 10:49:12 +03:00
nfd-api-controller.go Tidy up usage of channels for signaling 2024-04-05 14:39:58 +03:00
nfd-api-controller_test.go nfd-master: refactor api-controller object handling 2023-04-28 17:33:33 +03:00
nfd-master-internal_test.go nfd-master: parse kubeconfig even with NoPublish set 2024-04-08 14:25:27 +03:00
nfd-master.go nfd-master: parse kubeconfig even with NoPublish set 2024-04-08 14:25:27 +03:00
nfd-master_test.go nfd-master: parse kubeconfig even with NoPublish set 2024-04-08 14:25:27 +03:00
node-updater-pool.go Merge pull request #1642 from marquiz/devel/master-updater-pool-lock 2024-04-05 03:31:10 -07:00
node-updater-pool_test.go nfd-master: implement opts for modifying NfdMaster instance 2024-04-05 20:21:19 +03:00