Created
January 25, 2019 13:56
-
-
Save duboisf/8c3682adbd34593c6b3b7154c5dcc73d to your computer and use it in GitHub Desktop.
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
apiVersion: argoproj.io/v1alpha1 | |
kind: Workflow | |
metadata: | |
generateName: test- | |
namespace: argo | |
spec: | |
entrypoint: reproduce | |
arguments: | |
parameters: | |
- name: items | |
value: | | |
[ "1", "2", "3", "4" ] | |
# Steps | |
templates: | |
- name: reproduce | |
steps: | |
- - name: step1 | |
template: sub-steps | |
arguments: | |
parameters: | |
- name: cluster | |
value: "{{item}}" | |
withParam: "{{workflow.parameters.items}}" | |
- - name: step2 | |
template: sub-steps | |
arguments: | |
parameters: | |
- name: cluster | |
value: "{{item}}" | |
withParam: "{{workflow.parameters.items}}" | |
- name: sub-steps | |
steps: | |
- - name: foo | |
template: exec | |
- - name: bar | |
template: exec | |
- - name: baz | |
template: exec | |
# Containers | |
- name: exec | |
container: | |
image: alpine | |
command: [sh, -c] | |
args: | |
- | | |
echo foo (bar) |
Author
duboisf
commented
Jan 25, 2019
This is for argo 2.2.1, I deployed argo constrained to a namespace using https://github.com/argoproj/argo/tree/master/manifests/namespace-install
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment