Skip to content

Commit 64de3d4

Browse files
committed
Wait for metadata cache to sync
1 parent f3831c2 commit 64de3d4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pkg/cache/internal/deleg_map.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ func (m *InformersMap) Start(ctx context.Context) error {
7373
func (m *InformersMap) WaitForCacheSync(ctx context.Context) bool {
7474
syncedFuncs := append([]cache.InformerSynced(nil), m.structured.HasSyncedFuncs()...)
7575
syncedFuncs = append(syncedFuncs, m.unstructured.HasSyncedFuncs()...)
76+
syncedFuncs = append(syncedFuncs, m.metadata.HasSyncedFuncs()...)
7677

7778
if !m.structured.waitForStarted(ctx) {
7879
return false

0 commit comments

Comments
 (0)