Skip to content

Commit

Permalink
Merge pull request #1283 from pydctw/metadata-sync-bp-0.5
Browse files Browse the repository at this point in the history
✨ Backport release-0.5: Wait for metadata cache to sync
  • Loading branch information
k8s-ci-robot committed Dec 1, 2020
2 parents e1a1cae + 753cedd commit 7d38e25
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 7d38e25

Please sign in to comment.