mirror of
https://github.com/kubernetes-sigs/node-feature-discovery.git
synced 2025-03-16 13:28:18 +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
33c3e39cd6
commit
1a18bcdfae
1 changed files with 1 additions and 0 deletions
|
@ -161,6 +161,7 @@ func newNfdController(config *restclient.Config, nfdApiControllerOptions nfdApiC
|
||||||
|
|
||||||
// Start informers
|
// Start informers
|
||||||
informerFactory.Start(c.stopChan)
|
informerFactory.Start(c.stopChan)
|
||||||
|
informerFactory.WaitForCacheSync(c.stopChan)
|
||||||
|
|
||||||
return c, nil
|
return c, nil
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue