-
Notifications
You must be signed in to change notification settings - Fork 3.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
support optional Input artifacts when artifacts not exist #3491
Comments
What version are you running? This might be fixed already |
running with latest version not work in my case. you can submit below wf to reproduce or check argo-issue-example repository :
after search source code, I found might be a little code change at: workflow/controller/dag.go#L539, and it works now. |
I'm able to reproduce. Found a fix |
@haibingzhao, I just noticed you found the same fix. Would you like to open a PR? |
opened PR can be found here: #3512 |
Summary
support optional Input artifacts when artifacts not exist.
Motivation
example_a
outputcondition_b1:true
andcondition_b2:false
condition_1
satisfied and executeexapmle_b
, whilecondition_2
not satisfiedexample_c
getcondition_b1
andcondition_b2
outputs with optional field:because
condition_2
not satisfied, so get error:Unable to resolve: {{tasks.condition-2.outputs.artifacts.example-b-2-result_b}}
detail workflow yaml:
Proposal
How do you think this should be implemented?
when artifact not exist and specified with
optional: true
: return nil instead report error.Message from the maintainers:
If you wish to see this enhancement implemented please add a 👍 reaction to this issue! We often sort issues this way to know what to prioritize.
The text was updated successfully, but these errors were encountered: