mirror of
https://github.com/rancher/norman.git
synced 2025-09-13 13:50:16 +00:00
Add namespace indexer to controllers
This commit is contained in:
@@ -64,7 +64,7 @@ func NewGenericController(name string, genericClient Backend) GenericController
|
||||
ListFunc: genericClient.List,
|
||||
WatchFunc: genericClient.Watch,
|
||||
},
|
||||
genericClient.ObjectFactory().Object(), resyncPeriod, cache.Indexers{})
|
||||
genericClient.ObjectFactory().Object(), resyncPeriod, cache.Indexers{cache.NamespaceIndex: cache.MetaNamespaceIndexFunc})
|
||||
|
||||
rl := workqueue.NewMaxOfRateLimiter(
|
||||
workqueue.NewItemExponentialFailureRateLimiter(500*time.Millisecond, 1000*time.Second),
|
||||
|
Reference in New Issue
Block a user