make the Container.Image field optional

pull/6/head
Chao Xu 2015-05-29 13:12:35 -07:00
parent 50b9d6284a
commit 74f66b3c96
1 changed files with 2 additions and 2 deletions

View File

@ -659,8 +659,8 @@ type Container struct {
// Required: This must be a DNS_LABEL. Each container in a pod must
// have a unique name.
Name string `json:"name" description:"name of the container; must be a DNS_LABEL and unique within the pod; cannot be updated"`
// Required.
Image string `json:"image" description:"Docker image name"`
// Optional.
Image string `json:"image,omitempty" description:"Docker image name"`
// Optional: The docker image's entrypoint is used if this is not provided; cannot be updated.
// Variable references $(VAR_NAME) are expanded using the container's environment. If a variable
// cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax