mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-03 01:06:27 +00:00
Merge pull request #14595 from yujuhong/rm_containerlist
Auto commit by PR queue bot
This commit is contained in:
commit
d11aec9217
@ -33,7 +33,6 @@ type FakeRuntime struct {
|
|||||||
sync.Mutex
|
sync.Mutex
|
||||||
CalledFunctions []string
|
CalledFunctions []string
|
||||||
PodList []*Pod
|
PodList []*Pod
|
||||||
ContainerList []*Container
|
|
||||||
ImageList []Image
|
ImageList []Image
|
||||||
PodStatus api.PodStatus
|
PodStatus api.PodStatus
|
||||||
StartedPods []string
|
StartedPods []string
|
||||||
@ -88,7 +87,6 @@ func (f *FakeRuntime) ClearCalls() {
|
|||||||
|
|
||||||
f.CalledFunctions = []string{}
|
f.CalledFunctions = []string{}
|
||||||
f.PodList = []*Pod{}
|
f.PodList = []*Pod{}
|
||||||
f.ContainerList = []*Container{}
|
|
||||||
f.PodStatus = api.PodStatus{}
|
f.PodStatus = api.PodStatus{}
|
||||||
f.StartedPods = []string{}
|
f.StartedPods = []string{}
|
||||||
f.KilledPods = []string{}
|
f.KilledPods = []string{}
|
||||||
@ -219,14 +217,6 @@ func (f *FakeRuntime) GetPodStatus(*api.Pod) (*api.PodStatus, error) {
|
|||||||
return &status, f.Err
|
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 {
|
func (f *FakeRuntime) ExecInContainer(containerID string, cmd []string, stdin io.Reader, stdout, stderr io.WriteCloser, tty bool) error {
|
||||||
f.Lock()
|
f.Lock()
|
||||||
defer f.Unlock()
|
defer f.Unlock()
|
||||||
|
Loading…
Reference in New Issue
Block a user