Skip to content

Commit a690a36

Browse files
authored
Merge pull request kubernetes#94086 from robscott/endpointslice-sync-fix
Updating EndpointSlice controller to wait for all caches to be synced
2 parents 544b74c + 9180cf2 commit a690a36

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)