wait for informer caches to sync before running controllers

Signed-off-by: Steve Kriss <krisss@vmware.com>
This commit is contained in:
Steve Kriss
2020-02-25 13:01:24 -07:00
parent 36e76518da
commit c7f283c7fa
16 changed files with 170 additions and 198 deletions

View File

@@ -62,8 +62,6 @@ func NewServerStatusRequestController(
}
c.syncHandler = c.processItem
c.cacheSyncWaiters = append(c.cacheSyncWaiters, informer.Informer().HasSynced)
c.resyncFunc = c.enqueueAllItems
c.resyncPeriod = statusRequestResyncPeriod