mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-05 10:19:50 +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)
|
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
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user