Skip to content

Commit 9180cf2

Browse files
committed
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.
1 parent 544b74c commit 9180cf2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/controller/endpointslice/endpointslice_controller.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ func (c *Controller) Run(workers int, stopCh <-chan struct{}) {
237237
klog.Infof("Starting endpoint slice controller")
238238
defer klog.Infof("Shutting down endpoint slice controller")
239239

240-
if !cache.WaitForNamedCacheSync("endpoint_slice", stopCh, c.podsSynced, c.servicesSynced) {
240+
if !cache.WaitForNamedCacheSync("endpoint_slice", stopCh, c.podsSynced, c.servicesSynced, c.endpointSlicesSynced, c.nodesSynced) {
241241
return
242242
}
243243

0 commit comments

Comments
 (0)