mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 19:56:01 +00:00
Merge pull request #2820 from ravigadde/master
MountPath in VolumeMount is a required field. Removing the omitempty.
This commit is contained in:
commit
473376b085
@ -234,7 +234,7 @@ type VolumeMount struct {
|
||||
// Optional: Defaults to false (read-write).
|
||||
ReadOnly bool `json:"readOnly,omitempty"`
|
||||
// Required.
|
||||
MountPath string `json:"mountPath,omitempty"`
|
||||
MountPath string `json:"mountPath"`
|
||||
}
|
||||
|
||||
// EnvVar represents an environment variable present in a Container.
|
||||
|
@ -171,7 +171,7 @@ type VolumeMount struct {
|
||||
// Required.
|
||||
// Exactly one of the following must be set. If both are set, prefer MountPath.
|
||||
// DEPRECATED: Path will be removed in a future version of the API.
|
||||
MountPath string `json:"mountPath,omitempty" description:"path within the container at which the volume should be mounted; overrides path"`
|
||||
MountPath string `json:"mountPath" description:"path within the container at which the volume should be mounted; overrides path"`
|
||||
Path string `json:"path,omitempty" description:"path within the container at which the volume should be mounted; deprecated"`
|
||||
// One of: "LOCAL" (local volume) or "HOST" (external mount from the host). Default: LOCAL.
|
||||
// DEPRECATED: MountType will be removed in a future version of the API.
|
||||
|
@ -145,7 +145,7 @@ type VolumeMount struct {
|
||||
// Optional: Defaults to false (read-write).
|
||||
ReadOnly bool `json:"readOnly,omitempty" description:"mounted read-only if true, read-write otherwise (false or unspecified)"`
|
||||
// Required.
|
||||
MountPath string `json:"mountPath,omitempty" description:"path within the container at which the volume should be mounted"`
|
||||
MountPath string `json:"mountPath" description:"path within the container at which the volume should be mounted"`
|
||||
}
|
||||
|
||||
// EnvVar represents an environment variable present in a Container.
|
||||
|
@ -254,7 +254,7 @@ type VolumeMount struct {
|
||||
// Optional: Defaults to false (read-write).
|
||||
ReadOnly bool `json:"readOnly,omitempty"`
|
||||
// Required.
|
||||
MountPath string `json:"mountPath,omitempty"`
|
||||
MountPath string `json:"mountPath"`
|
||||
}
|
||||
|
||||
// EnvVar represents an environment variable present in a Container.
|
||||
|
Loading…
Reference in New Issue
Block a user