You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
1.**File Format**: The environment variable (env) file must adhere to valid [.env syntax](https://smartmob-rfc.readthedocs.io/en/latest/2-dotenv.html) to ensure correct parsing. An example:
292
+
1.**File Format**: The environment variable (env) file must adhere to valid env file syntax to ensure proper parsing. The syntax for env files is as follows:
293
+
* Blank Lines: Blank lines are ignored.
294
+
* Leading Spaces: Leading spaces on all lines are ignored.
295
+
* Variable Declaration: Variables must be declared as `VAR=VAL`. Spaces surrounding `=` and trailing spaces are ignored.
296
+
```
297
+
VAR=VAL → VAL
298
+
```
299
+
* Comments: Lines beginning with # are treated as comments and ignored.
300
+
```
301
+
# comment
302
+
VAR=VAL → VAL
303
+
VAR=VAL # not a comment → VAL # not a comment
304
+
```
305
+
* Line Continuation: A backslash (`\`) at the end of a variable declaration line indicates the value continues on the next line. The lines are joined with a single space.
306
+
```
307
+
VAR=VAL \
308
+
VAL2
309
+
→ VAL VAL2
310
+
```
285
311
286
-
```
287
-
KEY1=VALUE1
288
-
KEY2=VALUE2
289
-
...
290
-
```
291
312
292
313
2. **Variable Naming**: We will apply the same variable name [restrictions](https://github.com/kubernetes/kubernetes/blob/a7ca13ea29ba5b3c91fd293cdbaec8fb5b30cee2/pkg/apis/core/validation/validation.go#L2583-L2596) as other API-defined env vars.
293
314
@@ -319,7 +340,6 @@ Below are the ones we mapped and their outcome once this KEP is implemented.
319
340
|4. Either the filepath or key specified in `FileKeySelector` field does not exist but `optional` field is set to true | Pod created | Container starts and env vars are not populated. |
320
341
|5. The specified file is not a parsable env file. | Pod created | Container fails to start and error message is reported in the events.|
321
342
|6. The specified file contains invalid env var names. | Pod created | Container fails to start and erorr message is reported in the events.|
322
-
|7. The container's UID does not have permission to read the env file. | Pod created | Container fails to start and erorr message is reported in the events.|
323
343
324
344
325
345
### Security Considerations
@@ -552,7 +572,8 @@ N/A
552
572
## Implementation History
553
573
554
574
* 2023/02/15: Initial proposal
555
-
* 2024/06/06: Open the new PR and continue implementing the KEP.
575
+
* 2025/06/06: Open the new PR and continue implementing the KEP.
576
+
* 2025/08/13: Align KEPs with implemented PRs and documentation.
0 commit comments