aboutsummaryrefslogtreecommitdiff
path: root/plugin
diff options
context:
space:
mode:
authorGravatar Yong Tang <yong.tang.github@outlook.com> 2022-02-22 06:20:29 -0800
committerGravatar GitHub <noreply@github.com> 2022-02-22 09:20:29 -0500
commitb1d5d7c572e8cfec87d6036ad0249c2ec4ae362a (patch)
tree920f32456d68a59d5cc203c49e250a671a2d1447 /plugin
parenta2262052993fe6a12348cd97db04fea563bf6986 (diff)
downloadcoredns-b1d5d7c572e8cfec87d6036ad0249c2ec4ae362a.tar.gz
coredns-b1d5d7c572e8cfec87d6036ad0249c2ec4ae362a.tar.zst
coredns-b1d5d7c572e8cfec87d6036ad0249c2ec4ae362a.zip
Replace deprecated NewDeltaFIFO with NewDeltaFIFOWithOptions (#5200)
Replace deprecated `cache.NewDeltaFIFO` Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
Diffstat (limited to 'plugin')
-rw-r--r--plugin/kubernetes/object/informer.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugin/kubernetes/object/informer.go b/plugin/kubernetes/object/informer.go
index e44cd218a..aac95bd8b 100644
--- a/plugin/kubernetes/object/informer.go
+++ b/plugin/kubernetes/object/informer.go
@@ -13,7 +13,7 @@ func NewIndexerInformer(lw cache.ListerWatcher, objType runtime.Object, h cache.
clientState := cache.NewIndexer(cache.DeletionHandlingMetaNamespaceKeyFunc, indexers)
cfg := &cache.Config{
- Queue: cache.NewDeltaFIFO(cache.MetaNamespaceKeyFunc, clientState),
+ Queue: cache.NewDeltaFIFOWithOptions(cache.DeltaFIFOOptions{KeyFunction: cache.MetaNamespaceKeyFunc, KnownObjects: clientState}),
ListerWatcher: lw,
ObjectType: objType,
FullResyncPeriod: defaultResyncPeriod,