Skip to content

Commit

Permalink
Wait for metadata cache to sync
Browse files Browse the repository at this point in the history
  • Loading branch information
Winnie Kwon committed Dec 1, 2020
1 parent e1a1cae commit 753cedd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/cache/internal/deleg_map.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ func (m *InformersMap) Start(stop <-chan struct{}) error {
func (m *InformersMap) WaitForCacheSync(stop <-chan struct{}) bool {
syncedFuncs := append([]cache.InformerSynced(nil), m.structured.HasSyncedFuncs()...)
syncedFuncs = append(syncedFuncs, m.unstructured.HasSyncedFuncs()...)
syncedFuncs = append(syncedFuncs, m.metadata.HasSyncedFuncs()...)

if !m.structured.waitForStarted(stop) {
return false
Expand Down

0 comments on commit 753cedd

Please sign in to comment.