Open Digtiq opened 1 year ago
can you see if this is working on latest (3.4.3)?
same problem output is:
test:{{=jsonpath(tasks.dummy0.outputs.result, $.test)}}
okay, thanks for checking!
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If this is a mentoring request, please provide an update here. Thank you for your contributions.
inline
is a Container Template. Should arg be the following?
- echo 'test:{{=jsonpath(input.parameters.json, '$.test')}}'
same problem!
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If this is a mentoring request, please provide an update here. Thank you for your contributions.
We may want to retry this since https://github.com/argoproj/pkg/pull/486 / #11704 updated to a newer and more comprehensive JSONPath library. That was released in 3.5.0-rc2
Oh, wait a minute.
#- echo 'test:{{=jsonpath(workflow.parameters.myjson, '$.test')}}' # working - echo 'test:{{=jsonpath(tasks.dummy0.outputs.result, '$.test')}}' # not working
That might be because tasks.dummy0.outputs.result
is a JSON string, not a deserialized map. You might be able to workaround this with fromJSON
which recently became available as a new built-in function in expr
1.14. That new expr
version is included in Argo 3.5.0-rc2 as well
I still get the issue, I will have a look into this when I manage to find a bit of time.
Pre-requisites
:latest
What happened/what you expected to happen?
hello, I have already tried many things but am in despair. Simple jsonpath doesn't work if I want to use the output from the step before. then the
{{}}
are just ignored andtest:{{=jsonpath(tasks.dummy0.outputs.result, '$.test')}}
is output which I think is a bug.if i use the
myjson
parameter then everything works correctly.Version
3.3.8
Paste a small workflow that reproduces the issue. We must be able to run the workflow; don't enter a workflows that uses private images.
Logs from the workflow controller
Logs from in your workflow's wait container