Track the sources that the kubelet has seen, and only delete pods
when every source has been seen at least once.
This commit is contained in:
@@ -76,7 +76,7 @@ func TestGetContainerID(t *testing.T) {
|
||||
t.Errorf("Failed to find container %#v", dockerContainer)
|
||||
}
|
||||
|
||||
fakeDocker.clearCalls()
|
||||
fakeDocker.ClearCalls()
|
||||
dockerContainer, found, _ = dockerContainers.FindPodContainer("foobar", "", "foo")
|
||||
verifyCalls(t, fakeDocker, []string{})
|
||||
if dockerContainer != nil || found {
|
||||
|
Reference in New Issue
Block a user