Use a lister for bootstrap flowcontrol config objects.

Instead of listing all flowschemas and prioritylevelconfigurations on
each tick, read from local informer caches.
This commit is contained in:
Ben Luddy
2021-10-18 11:53:35 -04:00
parent a78e3133a0
commit 3f929b1634
6 changed files with 139 additions and 110 deletions

View File

@@ -433,7 +433,7 @@ func (c completedConfig) New(delegationTarget genericapiserver.DelegationTarget)
rbacrest.RESTStorageProvider{Authorizer: c.GenericConfig.Authorization.Authorizer},
schedulingrest.RESTStorageProvider{},
storagerest.RESTStorageProvider{},
flowcontrolrest.RESTStorageProvider{},
flowcontrolrest.RESTStorageProvider{InformerFactory: c.GenericConfig.SharedInformerFactory},
// keep apps after extensions so legacy clients resolve the extensions versions of shared resource names.
// See https://github.com/kubernetes/kubernetes/issues/42392
appsrest.StorageProvider{},