mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-10 21:50:05 +00:00
quota: add an update filter
Fix a TODO to plumb an update filter from above in the resource quota monitor code that was handling update events for quota-able objects, instead of hard-coding the logic in the resource quota monitor. Signed-off-by: Andy Goldstein <andy.goldstein@redhat.com>
This commit is contained in:
@@ -426,6 +426,7 @@ func startResourceQuotaController(ctx context.Context, controllerContext Control
|
||||
IgnoredResourcesFunc: quotaConfiguration.IgnoredResources,
|
||||
InformersStarted: controllerContext.InformersStarted,
|
||||
Registry: generic.NewRegistry(quotaConfiguration.Evaluators()),
|
||||
UpdateFilter: quotainstall.DefaultUpdateFilter(),
|
||||
}
|
||||
if resourceQuotaControllerClient.CoreV1().RESTClient().GetRateLimiter() != nil {
|
||||
if err := ratelimiter.RegisterMetricAndTrackRateLimiterUsage("resource_quota_controller", resourceQuotaControllerClient.CoreV1().RESTClient().GetRateLimiter()); err != nil {
|
||||
|
Reference in New Issue
Block a user