mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-04 01:40:07 +00:00
Enqueue controllers after minreadyseconds when all pods are ready
This commit is contained in:
parent
74a70262c5
commit
18ed2f6c54
@ -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