From f2135e1ff7c7791195a4d558aa639d782b000d1f 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 +-- pkg/sharding/listwatch_test.go | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/internal/store/builder.go b/internal/store/builder.go index acb0708098..b92f7977e3 100644 --- a/internal/store/builder.go +++ b/internal/store/builder.go @@ -536,8 +536,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} } diff --git a/pkg/sharding/listwatch_test.go b/pkg/sharding/listwatch_test.go index 85f82563f3..cc7f8698e7 100644 --- a/pkg/sharding/listwatch_test.go +++ b/pkg/sharding/listwatch_test.go @@ -27,7 +27,7 @@ import ( func TestSharding(t *testing.T) { cm := &v1.Pod{ ObjectMeta: metav1.ObjectMeta{ - Name: "configmap1", + Name: "pod1", Namespace: "ns1", UID: types.UID("test_uid"), },