From 9180cf234636ba8eea5fc173a68eefaf7c3c3c09 Mon Sep 17 00:00:00 2001 From: Rob Scott Date: Tue, 18 Aug 2020 12:11:44 -0700 Subject: [PATCH] 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. --- pkg/controller/endpointslice/endpointslice_controller.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/controller/endpointslice/endpointslice_controller.go b/pkg/controller/endpointslice/endpointslice_controller.go index e4b120a706a..4021e1b45ec 100644 --- a/pkg/controller/endpointslice/endpointslice_controller.go +++ b/pkg/controller/endpointslice/endpointslice_controller.go @@ -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 }