Merge pull request #26301 from zmerlynn/wait_proper
Automatic merge from submit-queue routecontroller: Add wait.NonSlidingUntil, use it []() Make sure the reconciliation loop kicks in again immediately if it takes a loooooong time.
This commit is contained in:
@@ -50,7 +50,7 @@ func New(routes cloudprovider.Routes, kubeClient clientset.Interface, clusterNam
|
||||
}
|
||||
|
||||
func (rc *RouteController) Run(syncPeriod time.Duration) {
|
||||
go wait.Until(func() {
|
||||
go wait.NonSlidingUntil(func() {
|
||||
if err := rc.reconcileNodeRoutes(); err != nil {
|
||||
glog.Errorf("Couldn't reconcile node routes: %v", err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user