mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-31 23:37:01 +00:00
Merge pull request #45685 from derekwaynecarr/quota-enqueue
Automatic merge from submit-queue (batch tested with PRs 45685, 45572, 45624, 45723, 45733) resource quota full resync was removed in error **What this PR does / why we need it**: the quota controller should have had a full resync interval, and it was inadvertently removed in the move to shared informers. **Which issue this PR fixes** This fixes quota recalculation happening at the specified interval. **Special notes for your reviewer**: **Release note**: ```release-note the resource quota controller was not adding quota to be resynced at proper interval ```
This commit is contained in:
commit
da6fda3631
@ -255,7 +255,8 @@ func (rq *ResourceQuotaController) Run(workers int, stopCh <-chan struct{}) {
|
||||
go wait.Until(rq.worker(rq.queue), time.Second, stopCh)
|
||||
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)
|
||||
<-stopCh
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user