-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for secret and configMap valueFrom and envFrom fields in …
…templating Currently, we support template on the environment variables key, *but* not if the environment variable comes from a `ConfigMap` or a `Secret`. The following won't work. ``` env: - name: GOPATH value: /workspace - name: GITHUB_TOKEN valueFrom: secretKeyRef: name: ${inputs.params.github-token-secret} key: bot-token ``` This fixes that and add support for using variable interpolation on `valueFrom.secretKeyRef` and `valueFrom.configMapKeyRef`. This also adds variable interpolation on `envFrom`. Signed-off-by: Vincent Demeester <[email protected]>
- Loading branch information
1 parent
5cecb00
commit 6a4ff33
Showing
3 changed files
with
124 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters