mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-05 18:24:07 +00:00
Remove unnecessary loop for lowering expectations
This commit is contained in:
parent
480457994d
commit
9c5f311eff
@ -1079,9 +1079,7 @@ func (dsc *DaemonSetsController) syncNodes(ds *apps.DaemonSet, podsToDelete, nod
|
|||||||
skippedPods := createDiff - (batchSize + pos)
|
skippedPods := createDiff - (batchSize + pos)
|
||||||
if errorCount < len(errCh) && skippedPods > 0 {
|
if errorCount < len(errCh) && skippedPods > 0 {
|
||||||
klog.V(2).Infof("Slow-start failure. Skipping creation of %d pods, decrementing expectations for set %q/%q", skippedPods, ds.Namespace, ds.Name)
|
klog.V(2).Infof("Slow-start failure. Skipping creation of %d pods, decrementing expectations for set %q/%q", skippedPods, ds.Namespace, ds.Name)
|
||||||
for i := 0; i < skippedPods; i++ {
|
dsc.expectations.LowerExpectations(dsKey, skippedPods, 0)
|
||||||
dsc.expectations.CreationObserved(dsKey)
|
|
||||||
}
|
|
||||||
// The skipped pods will be retried later. The next controller resync will
|
// The skipped pods will be retried later. The next controller resync will
|
||||||
// retry the slow start process.
|
// retry the slow start process.
|
||||||
break
|
break
|
||||||
|
Loading…
Reference in New Issue
Block a user