mirror of
https://github.com/kubernetes-sigs/node-feature-discovery.git
synced 2025-03-05 16:27:05 +00:00
Fix the problem with starting the master with empty cache
We faced the problem when master deleted some of labels on start. Sometimes he doesn't gets NodeFeatures when they are present in cluster because of empty cache in informer
This commit is contained in:
parent
4628ea8ca1
commit
2f9801b554
1 changed files with 1 additions and 0 deletions
|
@ -161,6 +161,7 @@ func newNfdController(config *restclient.Config, nfdApiControllerOptions nfdApiC
|
|||
|
||||
// Start informers
|
||||
informerFactory.Start(c.stopChan)
|
||||
informerFactory.WaitForCacheSync(c.stopChan)
|
||||
|
||||
return c, nil
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue