From 487fc1fff3dce09c3b94ec63f830b91d66d16d75 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20R=C3=BCger?= Date: Mon, 19 Aug 2024 17:32:07 +0200 Subject: [PATCH] fix: remove unneeded change --- internal/store/builder.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/internal/store/builder.go b/internal/store/builder.go index ff8deb78a1..c815d56f6f 100644 --- a/internal/store/builder.go +++ b/internal/store/builder.go @@ -538,8 +538,7 @@ func (b *Builder) buildStores( if b.fieldSelectorFilter != "" { klog.InfoS("FieldSelector is used", "fieldSelector", b.fieldSelectorFilter) } - kubeClient := b.kubeClient - listWatcher := listWatchFunc(kubeClient, v1.NamespaceAll, b.fieldSelectorFilter) + listWatcher := listWatchFunc(b.kubeClient, v1.NamespaceAll, b.fieldSelectorFilter) b.startReflector(expectedType, store, listWatcher, useAPIServerCache) return []cache.Store{store} }