mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-30 23:57:46 +00:00
Merge pull request #123534 from kannon92/fix-downward-api-comment
uid is also supported in field ref for downward api
This commit is contained in:
commit
a6b806910a
2
api/openapi-spec/swagger.json
generated
2
api/openapi-spec/swagger.json
generated
@ -6040,7 +6040,7 @@
|
||||
"properties": {
|
||||
"fieldRef": {
|
||||
"$ref": "#/definitions/io.k8s.api.core.v1.ObjectFieldSelector",
|
||||
"description": "Required: Selects a field of the pod: only annotations, labels, name and namespace are supported."
|
||||
"description": "Required: Selects a field of the pod: only annotations, labels, name, namespace and uid are supported."
|
||||
},
|
||||
"mode": {
|
||||
"description": "Optional: mode bits used to set permissions on this file, must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. If not specified, the volume defaultMode will be used. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.",
|
||||
|
@ -1618,7 +1618,7 @@
|
||||
"$ref": "#/components/schemas/io.k8s.api.core.v1.ObjectFieldSelector"
|
||||
}
|
||||
],
|
||||
"description": "Required: Selects a field of the pod: only annotations, labels, name and namespace are supported."
|
||||
"description": "Required: Selects a field of the pod: only annotations, labels, name, namespace and uid are supported."
|
||||
},
|
||||
"mode": {
|
||||
"description": "Optional: mode bits used to set permissions on this file, must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. If not specified, the volume defaultMode will be used. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.",
|
||||
|
@ -2026,7 +2026,7 @@
|
||||
"$ref": "#/components/schemas/io.k8s.api.core.v1.ObjectFieldSelector"
|
||||
}
|
||||
],
|
||||
"description": "Required: Selects a field of the pod: only annotations, labels, name and namespace are supported."
|
||||
"description": "Required: Selects a field of the pod: only annotations, labels, name, namespace and uid are supported."
|
||||
},
|
||||
"mode": {
|
||||
"description": "Optional: mode bits used to set permissions on this file, must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. If not specified, the volume defaultMode will be used. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.",
|
||||
|
@ -1326,7 +1326,7 @@
|
||||
"$ref": "#/components/schemas/io.k8s.api.core.v1.ObjectFieldSelector"
|
||||
}
|
||||
],
|
||||
"description": "Required: Selects a field of the pod: only annotations, labels, name and namespace are supported."
|
||||
"description": "Required: Selects a field of the pod: only annotations, labels, name, namespace and uid are supported."
|
||||
},
|
||||
"mode": {
|
||||
"description": "Optional: mode bits used to set permissions on this file, must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. If not specified, the volume defaultMode will be used. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.",
|
||||
|
2
pkg/generated/openapi/zz_generated.openapi.go
generated
2
pkg/generated/openapi/zz_generated.openapi.go
generated
@ -19998,7 +19998,7 @@ func schema_k8sio_api_core_v1_DownwardAPIVolumeFile(ref common.ReferenceCallback
|
||||
},
|
||||
"fieldRef": {
|
||||
SchemaProps: spec.SchemaProps{
|
||||
Description: "Required: Selects a field of the pod: only annotations, labels, name and namespace are supported.",
|
||||
Description: "Required: Selects a field of the pod: only annotations, labels, name, namespace and uid are supported.",
|
||||
Ref: ref("k8s.io/api/core/v1.ObjectFieldSelector"),
|
||||
},
|
||||
},
|
||||
|
@ -1104,7 +1104,7 @@ message DownwardAPIVolumeFile {
|
||||
// Required: Path is the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..'
|
||||
optional string path = 1;
|
||||
|
||||
// Required: Selects a field of the pod: only annotations, labels, name and namespace are supported.
|
||||
// Required: Selects a field of the pod: only annotations, labels, name, namespace and uid are supported.
|
||||
// +optional
|
||||
optional ObjectFieldSelector fieldRef = 2;
|
||||
|
||||
|
@ -7093,7 +7093,7 @@ const (
|
||||
type DownwardAPIVolumeFile struct {
|
||||
// Required: Path is the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..'
|
||||
Path string `json:"path" protobuf:"bytes,1,opt,name=path"`
|
||||
// Required: Selects a field of the pod: only annotations, labels, name and namespace are supported.
|
||||
// Required: Selects a field of the pod: only annotations, labels, name, namespace and uid are supported.
|
||||
// +optional
|
||||
FieldRef *ObjectFieldSelector `json:"fieldRef,omitempty" protobuf:"bytes,2,opt,name=fieldRef"`
|
||||
// Selects a resource of the container: only resources limits and requests
|
||||
|
@ -498,7 +498,7 @@ func (DownwardAPIProjection) SwaggerDoc() map[string]string {
|
||||
var map_DownwardAPIVolumeFile = map[string]string{
|
||||
"": "DownwardAPIVolumeFile represents information to create the file containing the pod field",
|
||||
"path": "Required: Path is the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..'",
|
||||
"fieldRef": "Required: Selects a field of the pod: only annotations, labels, name and namespace are supported.",
|
||||
"fieldRef": "Required: Selects a field of the pod: only annotations, labels, name, namespace and uid are supported.",
|
||||
"resourceFieldRef": "Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported.",
|
||||
"mode": "Optional: mode bits used to set permissions on this file, must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. If not specified, the volume defaultMode will be used. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.",
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user