Skip to content

Commit

Permalink
kubelet: Introduce PodInfraContainerChanged().
Browse files Browse the repository at this point in the history
Update tests.
  • Loading branch information
Yifan Gu committed Apr 10, 2015
1 parent 16f5ebb commit e1299f6
Show file tree
Hide file tree
Showing 2 changed files with 384 additions and 171 deletions.
6 changes: 4 additions & 2 deletions pkg/kubelet/dockertools/fake_docker_client.go
Expand Up @@ -197,9 +197,11 @@ func (f *FakeDockerClient) StopContainer(id string, timeout uint) error {
f.Stopped = append(f.Stopped, id)
var newList []docker.APIContainers
for _, container := range f.ContainerList {
if container.ID != id {
newList = append(newList, container)
if container.ID == id {
f.ExitedContainerList = append(f.ExitedContainerList, container)
continue
}
newList = append(newList, container)
}
f.ContainerList = newList
return f.Err
Expand Down

0 comments on commit e1299f6

Please sign in to comment.