Skip to content

Commit d087038

Browse files
author
Winnie Kwon
committed
Wait for metadata cache to sync
1 parent 7fc9110 commit d087038

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(stop <-chan struct{}) error {
7373
func (m *InformersMap) WaitForCacheSync(stop <-chan struct{}) 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(stop) {
7879
return false

0 commit comments

Comments
 (0)