Skip to content

Does Argo support dynamic fan-out? #5740

Answered by brews
justinmchase asked this question in Q&A
Discussion options

You must be logged in to vote

Sure!

Here is a simple example

# This workflow demonstrates the use of a generator step which produces a list of items as a result.
# This list is subsequently used for expanding the next step into multiple parallel steps.
apiVersion: argoproj.io/v1alpha1
kind: Workflow
metadata:
  generateName: loops-param-result-
spec:
  entrypoint: loop-param-result-example
  templates:
  - name: loop-param-result-example
    steps:
    - - name: generate
        template: gen-number-list
    - - name: sleep
        template: sleep-n-sec
        arguments:
          parameters:
          - name: seconds
            value: "{{item}}"
        withParam: "{{steps.generate.outputs.result}}"

  - name: gen-…

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
2 replies
@justinmchase
Comment options

@hello-willy
Comment options

Answer selected by justinmchase
Comment options

You must be logged in to vote
2 replies
@justinmchase
Comment options

@alexec
Comment options

alexec Apr 23, 2021
Collaborator

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants