Commit b1d5d7c5 authored by Yong Tang's avatar Yong Tang Committed by GitHub

Replace deprecated NewDeltaFIFO with NewDeltaFIFOWithOptions (#5200)

Replace deprecated  `cache.NewDeltaFIFO`
Signed-off-by: default avatarYong Tang <yong.tang.github@outlook.com>
parent a2262052
...@@ -13,7 +13,7 @@ func NewIndexerInformer(lw cache.ListerWatcher, objType runtime.Object, h cache. ...@@ -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,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment