Convert existing kubernetes system to use ContainerStatus, instead of
docker.Container directly. Conflicts: pkg/kubelet/dockertools/docker.go pkg/registry/pod/rest.go
This commit is contained in:
@@ -146,7 +146,11 @@ func TestContainers(t *testing.T) {
|
||||
|
||||
func TestPodInfo(t *testing.T) {
|
||||
fw := newServerTest()
|
||||
expected := api.PodInfo{"goodpod": docker.Container{ID: "myContainerID"}}
|
||||
expected := api.PodInfo{
|
||||
"goodpod": api.ContainerStatus{
|
||||
DetailInfo: docker.Container{ID: "myContainerID"},
|
||||
},
|
||||
}
|
||||
fw.fakeKubelet.infoFunc = func(name string) (api.PodInfo, error) {
|
||||
if name == "goodpod.etcd" {
|
||||
return expected, nil
|
||||
|
Reference in New Issue
Block a user