Skip to content

Commit 722a81c

Browse files
committed
fix: remove unneeded change
1 parent 7db82c1 commit 722a81c

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

internal/store/builder.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -536,8 +536,7 @@ func (b *Builder) buildStores(
536536
if b.fieldSelectorFilter != "" {
537537
klog.InfoS("FieldSelector is used", "fieldSelector", b.fieldSelectorFilter)
538538
}
539-
kubeClient := b.kubeClient
540-
listWatcher := listWatchFunc(kubeClient, v1.NamespaceAll, b.fieldSelectorFilter)
539+
listWatcher := listWatchFunc(b.kubeClient, v1.NamespaceAll, b.fieldSelectorFilter)
541540
b.startReflector(expectedType, store, listWatcher, useAPIServerCache)
542541
return []cache.Store{store}
543542
}

pkg/sharding/listwatch_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ import (
2727
func TestSharding(t *testing.T) {
2828
cm := &v1.Pod{
2929
ObjectMeta: metav1.ObjectMeta{
30-
Name: "configmap1",
30+
Name: "pod1",
3131
Namespace: "ns1",
3232
UID: types.UID("test_uid"),
3333
},

0 commit comments

Comments
 (0)