Skip to content

Commit 18ed2f6

Browse files
author
daihao
committed
Enqueue controllers after minreadyseconds when all pods are ready
1 parent 74a7026 commit 18ed2f6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pkg/controller/daemon/daemon_controller.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1198,6 +1198,10 @@ func (dsc *DaemonSetsController) updateDaemonSetStatus(ds *apps.DaemonSet, nodeL
11981198
return fmt.Errorf("error storing status for daemon set %#v: %v", ds, err)
11991199
}
12001200

1201+
// Resync the DaemonSet after MinReadySeconds as a last line of defense to guard against clock-skew.
1202+
if ds.Spec.MinReadySeconds > 0 && numberReady != numberAvailable {
1203+
dsc.enqueueDaemonSetAfter(ds, time.Duration(ds.Spec.MinReadySeconds)*time.Second)
1204+
}
12011205
return nil
12021206
}
12031207

0 commit comments

Comments
 (0)