Skip to content

Getting results of a step in a nested WorkflowTemplate structure #13905

Closed Answered by Zujiry
Zujiry asked this question in Q&A
Discussion options

You must be logged in to vote

After trial and error: You can actually solve this, via the propagation of outputs.

Adapting the specific-template-first like this:

apiVersion: argoproj.io/v1alpha1
kind: ClusterWorkflowTemplate
metadata:
  name: output-first-wft
spec:
  templates:
  - name: run-task-wft
    inputs:
      parameters:
      - name: download_url
    steps:
    - - name: step-first
        templateRef: 
          name: output-default-wft
          template: run-task-output-first
          clusterScope: true
        arguments:
          parameters:
          - name: download_url
            value: "{{inputs.parameters.download_url}}"
  outputs:
    parameters:
    - name: task_result
      valueFrom:
        …

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Zujiry
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant