mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-07-21 08:47:16 +00:00
docs(api): clarify env var key constraints in core types
This commit is contained in:
@@ -2350,7 +2350,8 @@ type SecretKeySelector struct {
|
||||
|
||||
// EnvFromSource represents the source of a set of ConfigMaps or Secrets
|
||||
type EnvFromSource struct {
|
||||
// Optional text to prepend to the name of each environment variable. Must be a C_IDENTIFIER.
|
||||
// Optional text to prepend to the name of each environment variable.
|
||||
// May consist of any printable ASCII characters except '='.
|
||||
// +optional
|
||||
Prefix string
|
||||
// The ConfigMap to select from.
|
||||
@@ -2640,7 +2641,8 @@ type Container struct {
|
||||
// +optional
|
||||
Ports []ContainerPort
|
||||
// List of sources to populate environment variables in the container.
|
||||
// The keys defined within a source must be a C_IDENTIFIER. All invalid keys
|
||||
// The keys defined within a source may consist of any printable ASCII characters except '='.
|
||||
// All invalid keys
|
||||
// will be reported as an event when the container is starting. When a key exists in multiple
|
||||
// sources, the value associated with the last source will take precedence.
|
||||
// Values defined by an Env with a duplicate key will take precedence.
|
||||
@@ -4427,7 +4429,8 @@ type EphemeralContainerCommon struct {
|
||||
// +optional
|
||||
Ports []ContainerPort
|
||||
// List of sources to populate environment variables in the container.
|
||||
// The keys defined within a source must be a C_IDENTIFIER. All invalid keys
|
||||
// The keys defined within a source may consist of any printable ASCII characters except '='.
|
||||
// All invalid keys
|
||||
// will be reported as an event when the container is starting. When a key exists in multiple
|
||||
// sources, the value associated with the last source will take precedence.
|
||||
// Values defined by an Env with a duplicate key will take precedence.
|
||||
|
||||
Reference in New Issue
Block a user