Skip to content

Commit

Permalink
Merge pull request #1276 from jackkleeman/metadata-sync
Browse files Browse the repository at this point in the history
🐛 Wait for metadata cache to sync
  • Loading branch information
k8s-ci-robot committed Nov 25, 2020
2 parents f3831c2 + 64de3d4 commit 7c637a2
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(ctx context.Context) error {
func (m *InformersMap) WaitForCacheSync(ctx context.Context) 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(ctx) {
return false
Expand Down

0 comments on commit 7c637a2

Please sign in to comment.