@@ -330,7 +330,9 @@ spec:
330330 a Container.
331331 properties :
332332 name :
333- description : Name of the environment variable. Must be a C_IDENTIFIER.
333+ description : |-
334+ Name of the environment variable.
335+ May consist of any printable ASCII characters except '='.
334336 type : string
335337 value :
336338 description : |-
@@ -388,6 +390,43 @@ spec:
388390 - fieldPath
389391 type : object
390392 x-kubernetes-map-type : atomic
393+ fileKeyRef :
394+ description : |-
395+ FileKeyRef selects a key of the env file.
396+ Requires the EnvFiles feature gate to be enabled.
397+ properties :
398+ key :
399+ description : |-
400+ The key within the env file. An invalid key will prevent the pod from starting.
401+ The keys defined within a source may consist of any printable ASCII characters except '='.
402+ During Alpha stage of the EnvFiles feature gate, the key size is limited to 128 characters.
403+ type : string
404+ optional :
405+ default : false
406+ description : |-
407+ Specify whether the file or its key must be defined. If the file or key
408+ does not exist, then the env var is not published.
409+ If optional is set to true and the specified key does not exist,
410+ the environment variable will not be set in the Pod's containers.
411+
412+ If optional is set to false and the specified key does not exist,
413+ an error will be returned during Pod creation.
414+ type : boolean
415+ path :
416+ description : |-
417+ The path within the volume from which to select the file.
418+ Must be relative and may not contain the '..' path or start with '..'.
419+ type : string
420+ volumeName :
421+ description : The name of the volume mount containing
422+ the env file.
423+ type : string
424+ required :
425+ - key
426+ - path
427+ - volumeName
428+ type : object
429+ x-kubernetes-map-type : atomic
391430 resourceFieldRef :
392431 description : |-
393432 Selects a resource of the container: only resources limits and requests
0 commit comments