- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for newGenericLister (0.22 sec)
-
pkg/controller/resourcequota/resource_quota_controller_test.go
listersForResourceConfig := map[schema.GroupVersionResource]cache.GenericLister{ pods: newGenericLister(pods.GroupResource(), []runtime.Object{}), secrets: newGenericLister(secrets.GroupResource(), []runtime.Object{}), deployments: newGenericLister(deployments.GroupResource(), []runtime.Object{}), }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jul 12 16:29:33 UTC 2023 - 42.6K bytes - Viewed (0) -
pkg/quota/v1/evaluator/core/pods_test.go
} return lister, nil } } func newGenericLister(groupResource schema.GroupResource, items []runtime.Object) cache.GenericLister { store := cache.NewIndexer(cache.MetaNamespaceKeyFunc, cache.Indexers{"namespace": cache.MetaNamespaceIndexFunc}) for _, item := range items { store.Add(item) } return cache.NewGenericLister(store, groupResource) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 24 18:25:29 UTC 2024 - 41.6K bytes - Viewed (0)