mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-01 07:47:56 +00:00
Fix quota controller hotloop in integration tests
This commit is contained in:
parent
afd55590e2
commit
81fa9855c1
@ -287,7 +287,11 @@ func (rq *Controller) Run(workers int, stopCh <-chan struct{}) {
|
||||
go wait.Until(rq.worker(rq.missingUsageQueue), time.Second, stopCh)
|
||||
}
|
||||
// the timer for how often we do a full recalculation across all quotas
|
||||
go wait.Until(func() { rq.enqueueAll() }, rq.resyncPeriod(), stopCh)
|
||||
if rq.resyncPeriod() > 0 {
|
||||
go wait.Until(func() { rq.enqueueAll() }, rq.resyncPeriod(), stopCh)
|
||||
} else {
|
||||
klog.Warningf("periodic quota controller resync disabled")
|
||||
}
|
||||
<-stopCh
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user