Output Parameter issue #11548
Output Parameter issue
#11548
-
Hi Team, I am using argo workflow v3.4.8 I am executing below output parameter workflow , so there i am getting below issue
workflow apiVersion: argoproj.io/v1alpha1
kind: Workflow
metadata:
generateName: local-storage-example-
spec:
entrypoint: main
templates:
- name: main
steps:
- - name: step-a
template: step-a-template
- - name: step-b
template: step-b-template
arguments:
parameters:
- name: output-value
valueFrom:
workflowStepRef:
name: step-a
outputName: output-parameter-example-step-a
- name: step-a-template
container:
image: alpine:latest
command: [sh, -c]
args: ["echo 'Hello from Step A' > /tmp/output.txt"]
outputs:
parameters:
- name: output-parameter-example-step-a
valueFrom:
path: /tmp/output.txt
- name: step-b-template
inputs:
parameters:
- name: output-value
container:
image: alpine:latest
command: [sh, -c]
args: ["cat /tmp/output-value.txt"] |
Beta Was this translation helpful? Give feedback.
Answered by
agilgur5
Aug 10, 2023
Replies: 1 comment
-
An equivalent way of retrieving that value would be to use an expression. Following this example, you could do: # ...
arguments:
parameters:
- name: output-value
value: "{{steps.step-a.outputs.parameters.output-parameter-example-step-a}}" |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
agilgur5
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
valueFrom
does not seem to have a field namedworkflowStepRef
. Was there an example you borrowed the syntax from?An equivalent way of retrieving that value would be to use an expression. Following this example, you could do: