Updating EndpointSlice controller to wait for all caches to be synced

Previously the EndpointSlice controller was not waiting for
EndpointSlices or Nodes to be synced.
This commit is contained in:
Rob Scott 2020-08-18 12:11:44 -07:00
parent 544b74c2cb
commit 9180cf2346
No known key found for this signature in database
GPG Key ID: 90C19B2D4A99C91B

View File

@ -237,7 +237,7 @@ func (c *Controller) Run(workers int, stopCh <-chan struct{}) {
klog.Infof("Starting endpoint slice controller")
defer klog.Infof("Shutting down endpoint slice controller")
if !cache.WaitForNamedCacheSync("endpoint_slice", stopCh, c.podsSynced, c.servicesSynced) {
if !cache.WaitForNamedCacheSync("endpoint_slice", stopCh, c.podsSynced, c.servicesSynced, c.endpointSlicesSynced, c.nodesSynced) {
return
}