mirror of https://github.com/k3s-io/k3s
Made image as deliberately optional in v1 Container struct.
parent
9a7818a2e0
commit
701c99b95c
|
@ -1887,7 +1887,10 @@ 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
|
||||
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.
|
||||
// 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
|
||||
|
|
Loading…
Reference in New Issue