Merge pull request #77208 from DaiHao/daemon_controller

Fix rolling update daemonset bug in clock-skew scenario
This commit is contained in:
Kubernetes Prow Robot 2019-05-03 21:01:52 -07:00 committed by GitHub
commit e871241268
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1198,6 +1198,10 @@ func (dsc *DaemonSetsController) updateDaemonSetStatus(ds *apps.DaemonSet, nodeL
return fmt.Errorf("error storing status for daemon set %#v: %v", ds, err)
}
// Resync the DaemonSet after MinReadySeconds as a last line of defense to guard against clock-skew.
if ds.Spec.MinReadySeconds > 0 && numberReady != numberAvailable {
dsc.enqueueDaemonSetAfter(ds, time.Duration(ds.Spec.MinReadySeconds)*time.Second)
}
return nil
}