1
0
Fork 0
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:
IbirbyZh 2024-06-10 18:06:14 +02:00 committed by k8s-infra-cherrypick-robot
parent 33c3e39cd6
commit 1a18bcdfae

View file

@ -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
} }