mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-03 17:30:00 +00:00
Fix volume imports
This commit is contained in:
parent
67414e035b
commit
f3f3c8f151
@ -128,7 +128,7 @@ func (f *FakeRuntime) GetPods(all bool) ([]*Pod, error) {
|
|||||||
return f.Podlist, f.Err
|
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()
|
f.Lock()
|
||||||
defer f.Unlock()
|
defer f.Unlock()
|
||||||
|
|
||||||
@ -152,7 +152,7 @@ func (f *FakeRuntime) KillPod(pod *api.Pod) error {
|
|||||||
return f.Err
|
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()
|
f.Lock()
|
||||||
defer f.Unlock()
|
defer f.Unlock()
|
||||||
|
|
||||||
|
@ -32,11 +32,11 @@ type Runtime interface {
|
|||||||
// exited and dead containers (used for garbage collection).
|
// exited and dead containers (used for garbage collection).
|
||||||
GetPods(all bool) ([]*Pod, error)
|
GetPods(all bool) ([]*Pod, error)
|
||||||
// RunPod starts all the containers of a pod within a namespace.
|
// 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 kills all the containers of a pod.
|
||||||
KillPod(*api.Pod) error
|
KillPod(*api.Pod) error
|
||||||
// RunContainerInPod starts a container within the same namespace of a pod.
|
// 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 kills a container in the pod.
|
||||||
KillContainerInPod(api.Container, *api.Pod) error
|
KillContainerInPod(api.Container, *api.Pod) error
|
||||||
// GetPodStatus retrieves the status of the pod, including the information of
|
// GetPodStatus retrieves the status of the pod, including the information of
|
||||||
|
Loading…
Reference in New Issue
Block a user