let panics propagate up when processLoop panic

Kubernetes-commit: 19a3ca2c289b6f3dc8cd495e3db0d347b5a3b774
This commit is contained in:
gobomb
2020-08-03 09:30:39 +00:00
committed by Kubernetes Publisher
parent 57f65489c1
commit 330cb14339
2 changed files with 47 additions and 1 deletions

View File

@@ -144,11 +144,11 @@ func (c *controller) Run(stopCh <-chan struct{}) {
c.reflectorMutex.Unlock()
var wg wait.Group
defer wg.Wait()
wg.StartWithChannel(stopCh, r.Run)
wait.Until(c.processLoop, time.Second, stopCh)
wg.Wait()
}
// Returns true once this controller has completed an initial resource listing