diff --git a/pkg/kubelet/container/fake_runtime.go b/pkg/kubelet/container/fake_runtime.go index 76c49b7e92c..e9ab0e882b9 100644 --- a/pkg/kubelet/container/fake_runtime.go +++ b/pkg/kubelet/container/fake_runtime.go @@ -128,7 +128,7 @@ func (f *FakeRuntime) GetPods(all bool) ([]*Pod, error) { return f.Podlist, f.Err } -func (f *FakeRuntime) RunPod(pod *api.Pod, volumeMap map[string]volume.Interface) error { +func (f *FakeRuntime) RunPod(pod *api.Pod, volumeMap map[string]volume.VolumePlugin) error { f.Lock() defer f.Unlock() @@ -152,7 +152,7 @@ func (f *FakeRuntime) KillPod(pod *api.Pod) error { return f.Err } -func (f *FakeRuntime) RunContainerInPod(container api.Container, pod *api.Pod, volumeMap map[string]volume.Interface) error { +func (f *FakeRuntime) RunContainerInPod(container api.Container, pod *api.Pod, volumeMap map[string]volume.VolumePlugin) error { f.Lock() defer f.Unlock() diff --git a/pkg/kubelet/container/runtime.go b/pkg/kubelet/container/runtime.go index 15ddfa70fc8..657c05471e3 100644 --- a/pkg/kubelet/container/runtime.go +++ b/pkg/kubelet/container/runtime.go @@ -32,11 +32,11 @@ type Runtime interface { // exited and dead containers (used for garbage collection). GetPods(all bool) ([]*Pod, error) // RunPod starts all the containers of a pod within a namespace. - RunPod(*api.Pod, map[string]volume.Interface) error + RunPod(*api.Pod, map[string]volume.VolumePlugin) error // KillPod kills all the containers of a pod. KillPod(*api.Pod) error // RunContainerInPod starts a container within the same namespace of a pod. - RunContainerInPod(api.Container, *api.Pod, map[string]volume.Interface) error + RunContainerInPod(api.Container, *api.Pod, map[string]volume.VolumePlugin) error // KillContainerInPod kills a container in the pod. KillContainerInPod(api.Container, *api.Pod) error // GetPodStatus retrieves the status of the pod, including the information of