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:
Tom Walker 2024-04-13 10:46:14 +00:00
parent f64b651eba
commit 1d4acfb882
9 changed files with 18 additions and 18 deletions

View File

@ -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": {

View File

@ -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": {

View File

@ -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": {

View File

@ -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": {

View File

@ -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.

View File

@ -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: "",
},

View File

@ -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;

View File

@ -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

View File

@ -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",
}