mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-09 12:07:47 +00:00
make the Container.Image field optional
This commit is contained in:
parent
50b9d6284a
commit
74f66b3c96
@ -659,8 +659,8 @@ type Container struct {
|
|||||||
// Required: This must be a DNS_LABEL. Each container in a pod must
|
// Required: This must be a DNS_LABEL. Each container in a pod must
|
||||||
// have a unique name.
|
// 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"`
|
Name string `json:"name" description:"name of the container; must be a DNS_LABEL and unique within the pod; cannot be updated"`
|
||||||
// Required.
|
// Optional.
|
||||||
Image string `json:"image" description:"Docker image name"`
|
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.
|
// 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
|
// 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
|
// cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax
|
||||||
|
Loading…
Reference in New Issue
Block a user