Commit 701c99b9 authored by Guangya Liu's avatar Guangya Liu

Made image as deliberately optional in v1 Container struct.

parent 9a7818a2
...@@ -1887,7 +1887,10 @@ type Container struct { ...@@ -1887,7 +1887,10 @@ type Container struct {
Name string `json:"name" protobuf:"bytes,1,opt,name=name"` Name string `json:"name" protobuf:"bytes,1,opt,name=name"`
// Docker image name. // Docker image name.
// More info: https://kubernetes.io/docs/concepts/containers/images // More info: https://kubernetes.io/docs/concepts/containers/images
Image string `json:"image" protobuf:"bytes,2,opt,name=image"` // This field is optional to allow higher level config management to default or override
// container images in workload controllers like Deployments and StatefulSets.
// +optional
Image string `json:"image,omitempty" protobuf:"bytes,2,opt,name=image"`
// Entrypoint array. Not executed within a shell. // Entrypoint array. Not executed within a shell.
// The docker image's ENTRYPOINT is used if this is not provided. // 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 // Variable references $(VAR_NAME) are expanded using the container's environment. If a variable
......
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