Replace deprecated NewDeltaFIFO with NewDeltaFIFOWithOptions (#5200)
Replace deprecated `cache.NewDeltaFIFO` Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
This commit is contained in:
parent
a226205299
commit
b1d5d7c572
1 changed files with 1 additions and 1 deletions
|
@ -13,7 +13,7 @@ func NewIndexerInformer(lw cache.ListerWatcher, objType runtime.Object, h cache.
|
||||||
clientState := cache.NewIndexer(cache.DeletionHandlingMetaNamespaceKeyFunc, indexers)
|
clientState := cache.NewIndexer(cache.DeletionHandlingMetaNamespaceKeyFunc, indexers)
|
||||||
|
|
||||||
cfg := &cache.Config{
|
cfg := &cache.Config{
|
||||||
Queue: cache.NewDeltaFIFO(cache.MetaNamespaceKeyFunc, clientState),
|
Queue: cache.NewDeltaFIFOWithOptions(cache.DeltaFIFOOptions{KeyFunction: cache.MetaNamespaceKeyFunc, KnownObjects: clientState}),
|
||||||
ListerWatcher: lw,
|
ListerWatcher: lw,
|
||||||
ObjectType: objType,
|
ObjectType: objType,
|
||||||
FullResyncPeriod: defaultResyncPeriod,
|
FullResyncPeriod: defaultResyncPeriod,
|
||||||
|
|
Loading…
Add table
Reference in a new issue