We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d2963e0 + ef53383 commit b2824f6Copy full SHA for b2824f6
pkg/cache/internal/informers_map.go
@@ -127,6 +127,8 @@ func (ip *specificInformersMap) Start(stop <-chan struct{}) {
127
128
// HasSyncedFuncs returns all the HasSynced functions for the informers in this map.
129
func (ip *specificInformersMap) HasSyncedFuncs() []cache.InformerSynced {
130
+ ip.mu.RLock()
131
+ defer ip.mu.RUnlock()
132
syncedFuncs := make([]cache.InformerSynced, 0, len(ip.informersByGVK))
133
for _, informer := range ip.informersByGVK {
134
syncedFuncs = append(syncedFuncs, informer.Informer.HasSynced)
0 commit comments