Merge pull request #94116 from robscott/automated-cherry-pick-of-#94086-upstream-release-1.18

Automated cherry pick of #94086: Updating EndpointSlice controller to wait for all caches to
This commit is contained in:
Kubernetes Prow Robot 2020-09-02 05:35:30 -07:00 committed by GitHub
commit f0f4e5722d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -213,7 +213,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
}