From 30f94438bea2cfb1eab54ba638df43faa13237a9 Mon Sep 17 00:00:00 2001 From: Mrunal Patel Date: Mon, 24 Oct 2016 19:53:26 -0400 Subject: [PATCH] image: populate image status The actual image pull happens in create container so we can fake this out to keep the kubelet happy. Signed-off-by: Mrunal Patel --- server/image.go | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/server/image.go b/server/image.go index 82405daa..f01c6530 100644 --- a/server/image.go +++ b/server/image.go @@ -29,7 +29,14 @@ func (s *Server) ImageStatus(ctx context.Context, req *pb.ImageStatusRequest) (* // TODO // containers/storage will take care of this by looking inside /var/lib/ocid/images // and getting the image status - return &pb.ImageStatusResponse{}, nil + + // HACK: Return fake status for now as the image pull actually happens in create container. + image := req.GetImage().GetImage() + return &pb.ImageStatusResponse{ + Image: &pb.Image{ + Id: &image, + }, + }, nil } // PullImage pulls a image with authentication config.