docs(api): clarify env var key constraints in core types

This commit is contained in:
LarytheLord
2026-02-27 13:17:04 +05:30
parent b55862975c
commit e941f65be6

View File

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