Skip to content

Commit ebbecee

Browse files
committed
fix: remove unneeded change
1 parent a08c6b8 commit ebbecee

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

internal/store/builder.go

+1-2
Original file line numberDiff line numberDiff line change
@@ -538,8 +538,7 @@ func (b *Builder) buildStores(
538538
if b.fieldSelectorFilter != "" {
539539
klog.InfoS("FieldSelector is used", "fieldSelector", b.fieldSelectorFilter)
540540
}
541-
kubeClient := b.kubeClient
542-
listWatcher := listWatchFunc(kubeClient, v1.NamespaceAll, b.fieldSelectorFilter)
541+
listWatcher := listWatchFunc(b.kubeClient, v1.NamespaceAll, b.fieldSelectorFilter)
543542
b.startReflector(expectedType, store, listWatcher, useAPIServerCache)
544543
return []cache.Store{store}
545544
}

pkg/sharding/listwatch_test.go

+1-1
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)