Merge pull request #94086 from robscott/endpointslice-sync-fix
Updating EndpointSlice controller to wait for all caches to be synced
This commit is contained in:
		| @@ -237,7 +237,7 @@ func (c *Controller) Run(workers int, stopCh <-chan struct{}) { | |||||||
| 	klog.Infof("Starting endpoint slice controller") | 	klog.Infof("Starting endpoint slice controller") | ||||||
| 	defer klog.Infof("Shutting down 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 | 		return | ||||||
| 	} | 	} | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Kubernetes Prow Robot
					Kubernetes Prow Robot