Commit 4c221892 authored by Dawn Chen's avatar Dawn Chen

Merge pull request #7241 from yifan-gu/pull

kubelet/container: Add Pull() and IsImagePresent() to runtime interface.
parents ef5f0395 de6e81fb
...@@ -66,7 +66,10 @@ type Runtime interface { ...@@ -66,7 +66,10 @@ type Runtime interface {
// Attaches the processes stdin, stdout, and stderr. Optionally uses a // Attaches the processes stdin, stdout, and stderr. Optionally uses a
// tty. // tty.
ExecInContainer(container api.Container, pod *api.Pod, stdin io.Reader, stdout, stderr io.WriteCloser, tty bool) ExecInContainer(container api.Container, pod *api.Pod, stdin io.Reader, stdout, stderr io.WriteCloser, tty bool)
// TODO(yifan): Pull/Remove images // Pull pulls an image from the network to local storage.
Pull(image string)
// IsImagePresent checks whether the container image is already in the local storage.
IsImagePresent(image string) (bool, error)
} }
// Container runner is a narrow interface to consume in the Kubelet // Container runner is a narrow interface to consume in the Kubelet
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment