This repository has been archived by the owner on Jan 19, 2024. It is now read-only.
Allow renaming of environment variables imported from kubernetes secrets #68
Labels
type:improvement
Improves/enhances an existing feature
Suppose the following kubernetes secret exists:
Currently the whole secret (all key/value pairs) can be imported as environment variables in the following way:
For easier reuse of secrets in different jobs it might be useful to be able to rename secrets. I propose to rework the env feature to work more like kubernetes. For the above example the new configuration would look like this:
This allows to import one specific key
username
of the secretmysecret
and make it available under the environment variableUSERNAME_ALPHA
in the container.To still allow the import of all key/value pairs in a secret a
envFrom
syntax can be used (https://kubernetes.io/docs/concepts/configuration/secret/#use-case-as-container-environment-variables):Similar, referencing the
event
goes from this:to this:
And for simple
string
values this:simplifies to:
Overall the rework would make env work like in kubernetes and prevent confusion on why the job-executor-service works slightly different. This would also introduce breaking changes and the supported
apiVersion
of the configuration must be increased.The text was updated successfully, but these errors were encountered: