From d6aea667bac7f62e0d7557d22b52b56530468641 Mon Sep 17 00:00:00 2001 From: Yu-Ju Hong Date: Fri, 25 Sep 2015 16:36:51 -0700 Subject: [PATCH] Remove ContainerList from fakeRuntime Container runtime interface currently doesn't support GetContainers and no test should be using fakeRuntime.ContainerList. Remove it to prevent accidental use. --- pkg/kubelet/container/fake_runtime.go | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/pkg/kubelet/container/fake_runtime.go b/pkg/kubelet/container/fake_runtime.go index 30116c13562..201ce21b605 100644 --- a/pkg/kubelet/container/fake_runtime.go +++ b/pkg/kubelet/container/fake_runtime.go @@ -33,7 +33,6 @@ type FakeRuntime struct { sync.Mutex CalledFunctions []string PodList []*Pod - ContainerList []*Container ImageList []Image PodStatus api.PodStatus StartedPods []string @@ -88,7 +87,6 @@ func (f *FakeRuntime) ClearCalls() { f.CalledFunctions = []string{} f.PodList = []*Pod{} - f.ContainerList = []*Container{} f.PodStatus = api.PodStatus{} f.StartedPods = []string{} f.KilledPods = []string{} @@ -219,14 +217,6 @@ func (f *FakeRuntime) GetPodStatus(*api.Pod) (*api.PodStatus, error) { return &status, f.Err } -func (f *FakeRuntime) GetContainers(all bool) ([]*Container, error) { - f.Lock() - defer f.Unlock() - - f.CalledFunctions = append(f.CalledFunctions, "GetContainers") - return f.ContainerList, f.Err -} - func (f *FakeRuntime) ExecInContainer(containerID string, cmd []string, stdin io.Reader, stdout, stderr io.WriteCloser, tty bool) error { f.Lock() defer f.Unlock()