From e0d3d652f604b9f10f472188dbce71cecca646bc Mon Sep 17 00:00:00 2001 From: Guangya Liu Date: Fri, 9 Jun 2017 22:36:32 +0800 Subject: [PATCH] Made image as required in v1 Container struct. --- pkg/api/v1/types.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pkg/api/v1/types.go b/pkg/api/v1/types.go index 04336366aa9..ee69b988b39 100644 --- a/pkg/api/v1/types.go +++ b/pkg/api/v1/types.go @@ -1721,8 +1721,7 @@ type Container struct { Name string `json:"name" protobuf:"bytes,1,opt,name=name"` // Docker image name. // More info: https://kubernetes.io/docs/concepts/containers/images - // +optional - Image string `json:"image,omitempty" protobuf:"bytes,2,opt,name=image"` + Image string `json:"image" protobuf:"bytes,2,opt,name=image"` // Entrypoint array. Not executed within a shell. // The docker image's ENTRYPOINT is used if this is not provided. // Variable references $(VAR_NAME) are expanded using the container's environment. If a variable