From de6e81fb4a4ba41f49f00ebf84f4ccd546f97224 Mon Sep 17 00:00:00 2001 From: Yifan Gu Date: Thu, 23 Apr 2015 10:35:14 -0700 Subject: [PATCH] kubelet/container: Add Pull() and IsImagePresent() to runtime interface. --- pkg/kubelet/container/runtime.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pkg/kubelet/container/runtime.go b/pkg/kubelet/container/runtime.go index 3d193ad6956..bd4141e4161 100644 --- a/pkg/kubelet/container/runtime.go +++ b/pkg/kubelet/container/runtime.go @@ -66,7 +66,10 @@ type Runtime interface { // Attaches the processes stdin, stdout, and stderr. Optionally uses a // tty. 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