Skip to content

Commit 8141a19

Browse files
committed
Allow almost all printable ASCII characters in environment variables
1 parent bcb9863 commit 8141a19

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
---
2+
title: RelaxedEnvironmentVariableValidation
3+
content_type: feature_gate
4+
_build:
5+
list: never
6+
render: false
7+
8+
stages:
9+
- stage: alpha
10+
defaultValue: false
11+
fromVersion: "1.30"
12+
---
13+
Allow almost all printable ASCII characters in environment variables.

content/en/docs/tasks/inject-data-application/define-environment-variable-container.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,12 @@ The `env` and `envFrom` fields have different effects.
3232
are set as environment variables for the container.
3333
You can also specify a common prefix string.
3434

35+
{{< note >}}
36+
The allowed character range of env name is within C_IDENTIFIER,
37+
after enable the `RelaxedEnvironmentVariableValidation` [feature gate](/docs/reference/command-line-tools-reference/feature-gates/), the name of env allows a wider range of characters,
38+
all printable ASCII characters except "=" can be used in env names.
39+
{{< /note >}}
40+
3541
You can read more about [ConfigMap](/docs/tasks/configure-pod-container/configure-pod-configmap/#configure-all-key-value-pairs-in-a-configmap-as-container-environment-variables)
3642
and [Secret](/docs/tasks/inject-data-application/distribute-credentials-secure/#configure-all-key-value-pairs-in-a-secret-as-container-environment-variables).
3743

0 commit comments

Comments
 (0)