Created
November 17, 2020 21:16
-
-
Save dcherman/588b3faa095f30442a8c9abdd3b4209a to your computer and use it in GitHub Desktop.
This file contains hidden or 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
metadata: | |
name: fantastic-tiger | |
namespace: argo | |
labels: | |
example: 'true' | |
spec: | |
serviceAccountName: argo | |
arguments: | |
parameters: | |
- name: message | |
value: hello argo | |
entrypoint: get-arg | |
templates: | |
- name: entry | |
steps: | |
- - name: get-arg | |
template: get-arg | |
- - name: argosay | |
template: argosay | |
arguments: | |
parameters: | |
- name: message | |
value: '{{steps.get-arg.outputs.parameters.cfg}}' | |
- name: get-arg | |
resource: | |
action: get | |
manifest: | | |
apiVersion: v1 | |
kind: ConfigMap | |
metadata: | |
name: workflow-controller-configmap | |
outputs: | |
parameters: | |
- name: cfg | |
valueFrom: | |
jsonPath: '{.data.config}' | |
- name: argosay | |
inputs: | |
parameters: | |
- name: message | |
value: '{{workflow.parameters.message}}' | |
container: | |
name: main | |
image: 'argoproj/argosay:v2' | |
command: | |
- /argosay | |
args: | |
- echo | |
- '{{inputs.parameters.message}}' | |
ttlStrategy: | |
secondsAfterCompletion: 300 | |
podGC: | |
strategy: OnPodCompletion |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment