1
0
Fork 0
mirror of https://github.com/kubernetes-sigs/node-feature-discovery.git synced 2024-12-14 11:57:51 +00:00

nfd-master: fix node updates on config change

Don't try to update all nodes on config change when the NodeFeature API
is disabled. In this case we rely on gRPC and only act on gRPC requests
from the worker.
This commit is contained in:
Markus Lehtonen 2023-07-17 17:55:14 +03:00
parent 09bc42e1ea
commit 542eb6f9be

View file

@ -244,7 +244,7 @@ func (m *nfdMaster) Run() error {
return err
}
// Update all nodes when the configuration changes
if m.nfdController != nil {
if m.nfdController != nil && m.args.EnableNodeFeatureApi {
m.nfdController.updateAllNodesChan <- struct{}{}
}
case <-m.stop: