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:
parent
09bc42e1ea
commit
542eb6f9be
1 changed files with 1 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue