-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: fix workflow configmap argument cannot be referenced as local v…
- Loading branch information
1 parent
72356ab
commit 6384e5f
Showing
4 changed files
with
99 additions
and
2 deletions.
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
32 changes: 32 additions & 0 deletions
32
examples/global-parameters-from-configmap-referenced-as-local-variable.yaml
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
apiVersion: argoproj.io/v1alpha1 | ||
kind: Workflow | ||
metadata: | ||
generateName: global-parameter-from-configmap-referenced-as-local-variable- | ||
labels: | ||
workflows.argoproj.io/test: "true" | ||
annotations: | ||
workflows.argoproj.io/description: | | ||
This example demonstrates global parameter from configmap can be referenced as template local variable. | ||
Note that the "simple-parameters" ConfigMap (defined in examples/configmaps/simple-parameters-configmap.yaml) | ||
needs to be created first before submitting this workflow. | ||
workflows.argoproj.io/verify.py: | | ||
assert status["phase"] == "Succeeded" | ||
spec: | ||
serviceAccountName: argo | ||
entrypoint: whalesay | ||
arguments: | ||
parameters: | ||
- name: message | ||
valueFrom: | ||
configMapKeyRef: | ||
name: simple-parameters | ||
key: msg | ||
templates: | ||
- name: whalesay | ||
inputs: | ||
parameters: | ||
- name: message | ||
container: | ||
image: docker/whalesay:latest | ||
command: [cowsay] | ||
args: ["{{inputs.parameters.message}}"] |
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