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:
Brendan Burns
2014-12-16 21:11:27 -08:00
parent bb28949291
commit 7da0378f3c
14 changed files with 191 additions and 74 deletions

View File

@@ -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 {