1
0
Fork 0
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:
IbirbyZh 2024-06-10 18:06:14 +02:00 committed by GitHub
parent 4628ea8ca1
commit 2f9801b554
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -161,6 +161,7 @@ func newNfdController(config *restclient.Config, nfdApiControllerOptions nfdApiC
// Start informers
informerFactory.Start(c.stopChan)
informerFactory.WaitForCacheSync(c.stopChan)
return c, nil
}