Skip to content

Commit 7de6830

Browse files
committed
update test to match validation filter of pods
invalid pod filter changed to name only changed for k8s v1.9 in 811447e PR#53194
1 parent c631e78 commit 7de6830

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/kubelet/config/config_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -189,8 +189,8 @@ func TestInvalidPodFiltered(t *testing.T) {
189189
channel <- podUpdate
190190
expectPodUpdate(t, ch, CreatePodUpdate(kubetypes.ADD, TestSource, CreateValidPod("foo", "new")))
191191

192-
// add an invalid update
193-
podUpdate = CreatePodUpdate(kubetypes.UPDATE, TestSource, &v1.Pod{ObjectMeta: metav1.ObjectMeta{Name: "foo"}})
192+
// add an invalid update, pod with the same name
193+
podUpdate = CreatePodUpdate(kubetypes.ADD, TestSource, CreateValidPod("foo", "new"))
194194
channel <- podUpdate
195195
expectNoPodUpdate(t, ch)
196196
}

0 commit comments

Comments
 (0)