mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-01 15:58:37 +00:00
Update EnvFromSource.Prefix doc to mention Secret as well as ConfigMap
Signed-off-by: Tom Walker <walker.thomas.p@gmail.com>
This commit is contained in:
parent
f64b651eba
commit
1d4acfb882
4
api/openapi-spec/swagger.json
generated
4
api/openapi-spec/swagger.json
generated
@ -6843,14 +6843,14 @@
|
||||
]
|
||||
},
|
||||
"io.k8s.api.core.v1.EnvFromSource": {
|
||||
"description": "EnvFromSource represents the source of a set of ConfigMaps",
|
||||
"description": "EnvFromSource represents the source of a set of ConfigMaps or Secrets",
|
||||
"properties": {
|
||||
"configMapRef": {
|
||||
"$ref": "#/definitions/io.k8s.api.core.v1.ConfigMapEnvSource",
|
||||
"description": "The ConfigMap to select from"
|
||||
},
|
||||
"prefix": {
|
||||
"description": "An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER.",
|
||||
"description": "Optional text to prepend to the name of each environment variable. Must be a C_IDENTIFIER.",
|
||||
"type": "string"
|
||||
},
|
||||
"secretRef": {
|
||||
|
4
api/openapi-spec/v3/api__v1_openapi.json
generated
4
api/openapi-spec/v3/api__v1_openapi.json
generated
@ -1957,7 +1957,7 @@
|
||||
]
|
||||
},
|
||||
"io.k8s.api.core.v1.EnvFromSource": {
|
||||
"description": "EnvFromSource represents the source of a set of ConfigMaps",
|
||||
"description": "EnvFromSource represents the source of a set of ConfigMaps or Secrets",
|
||||
"properties": {
|
||||
"configMapRef": {
|
||||
"allOf": [
|
||||
@ -1968,7 +1968,7 @@
|
||||
"description": "The ConfigMap to select from"
|
||||
},
|
||||
"prefix": {
|
||||
"description": "An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER.",
|
||||
"description": "Optional text to prepend to the name of each environment variable. Must be a C_IDENTIFIER.",
|
||||
"type": "string"
|
||||
},
|
||||
"secretRef": {
|
||||
|
4
api/openapi-spec/v3/apis__apps__v1_openapi.json
generated
4
api/openapi-spec/v3/apis__apps__v1_openapi.json
generated
@ -2115,7 +2115,7 @@
|
||||
"type": "object"
|
||||
},
|
||||
"io.k8s.api.core.v1.EnvFromSource": {
|
||||
"description": "EnvFromSource represents the source of a set of ConfigMaps",
|
||||
"description": "EnvFromSource represents the source of a set of ConfigMaps or Secrets",
|
||||
"properties": {
|
||||
"configMapRef": {
|
||||
"allOf": [
|
||||
@ -2126,7 +2126,7 @@
|
||||
"description": "The ConfigMap to select from"
|
||||
},
|
||||
"prefix": {
|
||||
"description": "An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER.",
|
||||
"description": "Optional text to prepend to the name of each environment variable. Must be a C_IDENTIFIER.",
|
||||
"type": "string"
|
||||
},
|
||||
"secretRef": {
|
||||
|
4
api/openapi-spec/v3/apis__batch__v1_openapi.json
generated
4
api/openapi-spec/v3/apis__batch__v1_openapi.json
generated
@ -1464,7 +1464,7 @@
|
||||
"type": "object"
|
||||
},
|
||||
"io.k8s.api.core.v1.EnvFromSource": {
|
||||
"description": "EnvFromSource represents the source of a set of ConfigMaps",
|
||||
"description": "EnvFromSource represents the source of a set of ConfigMaps or Secrets",
|
||||
"properties": {
|
||||
"configMapRef": {
|
||||
"allOf": [
|
||||
@ -1475,7 +1475,7 @@
|
||||
"description": "The ConfigMap to select from"
|
||||
},
|
||||
"prefix": {
|
||||
"description": "An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER.",
|
||||
"description": "Optional text to prepend to the name of each environment variable. Must be a C_IDENTIFIER.",
|
||||
"type": "string"
|
||||
},
|
||||
"secretRef": {
|
||||
|
@ -2263,9 +2263,9 @@ type SecretKeySelector struct {
|
||||
Optional *bool
|
||||
}
|
||||
|
||||
// EnvFromSource represents the source of a set of ConfigMaps
|
||||
// EnvFromSource represents the source of a set of ConfigMaps or Secrets
|
||||
type EnvFromSource struct {
|
||||
// An optional identifier to prepend to each key in the ConfigMap.
|
||||
// Optional text to prepend to the name of each environment variable. Must be a C_IDENTIFIER.
|
||||
// +optional
|
||||
Prefix string
|
||||
// The ConfigMap to select from.
|
||||
|
4
pkg/generated/openapi/zz_generated.openapi.go
generated
4
pkg/generated/openapi/zz_generated.openapi.go
generated
@ -22231,12 +22231,12 @@ func schema_k8sio_api_core_v1_EnvFromSource(ref common.ReferenceCallback) common
|
||||
return common.OpenAPIDefinition{
|
||||
Schema: spec.Schema{
|
||||
SchemaProps: spec.SchemaProps{
|
||||
Description: "EnvFromSource represents the source of a set of ConfigMaps",
|
||||
Description: "EnvFromSource represents the source of a set of ConfigMaps or Secrets",
|
||||
Type: []string{"object"},
|
||||
Properties: map[string]spec.Schema{
|
||||
"prefix": {
|
||||
SchemaProps: spec.SchemaProps{
|
||||
Description: "An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER.",
|
||||
Description: "Optional text to prepend to the name of each environment variable. Must be a C_IDENTIFIER.",
|
||||
Type: []string{"string"},
|
||||
Format: "",
|
||||
},
|
||||
|
@ -1327,9 +1327,9 @@ message EndpointsList {
|
||||
repeated Endpoints items = 2;
|
||||
}
|
||||
|
||||
// EnvFromSource represents the source of a set of ConfigMaps
|
||||
// EnvFromSource represents the source of a set of ConfigMaps or Secrets
|
||||
message EnvFromSource {
|
||||
// An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER.
|
||||
// Optional text to prepend to the name of each environment variable. Must be a C_IDENTIFIER.
|
||||
// +optional
|
||||
optional string prefix = 1;
|
||||
|
||||
|
@ -2437,9 +2437,9 @@ type SecretKeySelector struct {
|
||||
Optional *bool `json:"optional,omitempty" protobuf:"varint,3,opt,name=optional"`
|
||||
}
|
||||
|
||||
// EnvFromSource represents the source of a set of ConfigMaps
|
||||
// EnvFromSource represents the source of a set of ConfigMaps or Secrets
|
||||
type EnvFromSource struct {
|
||||
// An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER.
|
||||
// Optional text to prepend to the name of each environment variable. Must be a C_IDENTIFIER.
|
||||
// +optional
|
||||
Prefix string `json:"prefix,omitempty" protobuf:"bytes,1,opt,name=prefix"`
|
||||
// The ConfigMap to select from
|
||||
|
@ -595,8 +595,8 @@ func (EndpointsList) SwaggerDoc() map[string]string {
|
||||
}
|
||||
|
||||
var map_EnvFromSource = map[string]string{
|
||||
"": "EnvFromSource represents the source of a set of ConfigMaps",
|
||||
"prefix": "An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER.",
|
||||
"": "EnvFromSource represents the source of a set of ConfigMaps or Secrets",
|
||||
"prefix": "Optional text to prepend to the name of each environment variable. Must be a C_IDENTIFIER.",
|
||||
"configMapRef": "The ConfigMap to select from",
|
||||
"secretRef": "The Secret to select from",
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user