mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-07-17 11:28:58 +00:00
Merge pull request #137778 from bitoku/genericpleg
Set 0 to trigger the relist immediately
This commit is contained in:
@@ -167,7 +167,9 @@ func (g *GenericPLEG) Start() {
|
||||
|
||||
g.isRunning = true
|
||||
g.stopCh = make(chan struct{})
|
||||
g.globalRelistTimer = g.clock.NewTimer(g.relistDuration.RelistPeriod)
|
||||
// Set 0 to trigger the first relist immediately
|
||||
// The RelistPeriod is set after the first relist.
|
||||
g.globalRelistTimer = g.clock.NewTimer(0)
|
||||
|
||||
go func() {
|
||||
for g.workerLoopIteration() {
|
||||
|
||||
Reference in New Issue
Block a user