mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-28 14:07:14 +00:00
Fix omitempty attributes on downward api
This commit is contained in:
parent
f4ea8a3b2f
commit
2ecb883ff4
@ -518,7 +518,7 @@ type EnvVar struct {
|
||||
// EnvVarSource represents a source for the value of an EnvVar.
|
||||
type EnvVarSource struct {
|
||||
// Required: Selects a field of the pod; only name and namespace are supported.
|
||||
FieldPath *ObjectFieldSelector `json:"fieldPath,omitempty"`
|
||||
FieldPath *ObjectFieldSelector `json:"fieldPath"`
|
||||
}
|
||||
|
||||
// ObjectFieldSelector selects an APIVersioned field of an object.
|
||||
@ -526,9 +526,9 @@ type ObjectFieldSelector struct {
|
||||
// Required: Version of the schema the FieldPath is written in terms of.
|
||||
// If no value is specified, it will be defaulted to the APIVersion of the
|
||||
// enclosing object.
|
||||
APIVersion string `json:"apiVersion,omitempty"`
|
||||
APIVersion string `json:"apiVersion"`
|
||||
// Required: Path of the field to select in the specified API version
|
||||
FieldPath string `json:"fieldPath,omitempty"`
|
||||
FieldPath string `json:"fieldPath"`
|
||||
}
|
||||
|
||||
// HTTPGetAction describes an action based on HTTP Get requests.
|
||||
|
@ -407,7 +407,7 @@ type EnvVar struct {
|
||||
// EnvVarSource represents a source for the value of an EnvVar.
|
||||
type EnvVarSource struct {
|
||||
// Required: Selects a field of the pod; only name and namespace are supported.
|
||||
FieldPath *ObjectFieldSelector `json:"fieldPath,omitempty" description:"selects a field of the pod; only name and namespace are supported"`
|
||||
FieldPath *ObjectFieldSelector `json:"fieldPath" description:"selects a field of the pod; only name and namespace are supported"`
|
||||
}
|
||||
|
||||
// ObjectFieldSelector selects an APIVersioned field of an object.
|
||||
@ -415,7 +415,7 @@ type ObjectFieldSelector struct {
|
||||
// Optional: Version of the schema the FieldPath is written in terms of, defaults to "v1beta1"
|
||||
APIVersion string `json:"apiVersion,omitempty" description:"version of the schema that fieldPath is written in terms of; defaults to v1beta1"`
|
||||
// Required: Path of the field to select in the specified API version
|
||||
FieldPath string `json:"fieldPath,omitempty" description:"path of the field to select in the specified API version"`
|
||||
FieldPath string `json:"fieldPath" description:"path of the field to select in the specified API version"`
|
||||
}
|
||||
|
||||
// HTTPGetAction describes an action based on HTTP Get requests.
|
||||
|
@ -391,7 +391,7 @@ type EnvVar struct {
|
||||
// EnvVarSource represents a source for the value of an EnvVar.
|
||||
type EnvVarSource struct {
|
||||
// Required: Selects a field of the pod; only name and namespace are supported.
|
||||
FieldPath *ObjectFieldSelector `json:"fieldPath,omitempty" description:"selects a field of the pod; only name and namespace are supported"`
|
||||
FieldPath *ObjectFieldSelector `json:"fieldPath" description:"selects a field of the pod; only name and namespace are supported"`
|
||||
}
|
||||
|
||||
// ObjectFieldSelector selects an APIVersioned field of an object.
|
||||
@ -399,7 +399,7 @@ type ObjectFieldSelector struct {
|
||||
// Optional: Version of the schema the FieldPath is written in terms of, defaults to "v1beta2"
|
||||
APIVersion string `json:"apiVersion,omitempty" description:"version of the schema that fieldPath is written in terms of; defaults to v1beta2"`
|
||||
// Required: Path of the field to select in the specified API version
|
||||
FieldPath string `json:"fieldPath,omitempty" description:"path of the field to select in the specified API version"`
|
||||
FieldPath string `json:"fieldPath" description:"path of the field to select in the specified API version"`
|
||||
}
|
||||
|
||||
// HTTPGetAction describes an action based on HTTP Get requests.
|
||||
|
@ -529,7 +529,7 @@ type EnvVar struct {
|
||||
// EnvVarSource represents a source for the value of an EnvVar.
|
||||
type EnvVarSource struct {
|
||||
// Required: Selects a field of the pod; only name and namespace are supported.
|
||||
FieldPath *ObjectFieldSelector `json:"fieldPath,omitempty" description:"selects a field of the pod; only name and namespace are supported"`
|
||||
FieldPath *ObjectFieldSelector `json:"fieldPath" description:"selects a field of the pod; only name and namespace are supported"`
|
||||
}
|
||||
|
||||
// ObjectFieldSelector selects an APIVersioned field of an object.
|
||||
@ -537,7 +537,7 @@ type ObjectFieldSelector struct {
|
||||
// Optional: Version of the schema the FieldPath is written in terms of, defaults to "v1beta3"
|
||||
APIVersion string `json:"apiVersion,omitempty" description:"version of the schema that fieldPath is written in terms of; defaults to v1beta3"`
|
||||
// Required: Path of the field to select in the specified API version
|
||||
FieldPath string `json:"fieldPath,omitempty" description:"path of the field to select in the specified API version"`
|
||||
FieldPath string `json:"fieldPath" description:"path of the field to select in the specified API version"`
|
||||
}
|
||||
|
||||
// HTTPGetAction describes an action based on HTTP Get requests.
|
||||
|
Loading…
Reference in New Issue
Block a user