-
Hello, I would like to parse a JSON that I wrote to a file as an output, then evaluate a parameter of that JSON for a Seeminly this should work: #7413 Now with this output:
The condition of But my expression gets the error:
What I tried:
-> As I understand, if the condition would be true, it would execute correctly. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Note: a dash in the name requires the use of brackets and quotes for expr to handle. apiVersion: argoproj.io/v1alpha1
kind: ClusterWorkflowTemplate
metadata:
name: wft-if-else
spec:
templates:
- name: run-task-wft
steps:
- - name: step-first # <- this writes the aforementioned output
- - name: step-if-one
when: "1 == {{=jsonpath(steps['step-first'].outputs.parameters.result, '$.result')}}"
- - name: step-if-zero
when: "0 == {{=jsonpath(steps['step-first'].outputs.parameters.result, '$.result')}}" |
Beta Was this translation helpful? Give feedback.
Note: a dash in the name requires the use of brackets and quotes for expr to handle.