mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-30 15:05:27 +00:00
Merge pull request #77208 from DaiHao/daemon_controller
Fix rolling update daemonset bug in clock-skew scenario
This commit is contained in:
commit
e871241268
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user