-
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
templateDefaults has inconsistent behavior and does not allow command line parameter overwrite #6880
Comments
@sarabala1979 #6887 Does this fix resolve 1, 2, 3 and 4? |
@apiwoni #1 by design all I think |
@sarabala Thank you for shedding some light on this.
Indeed when I specified workflow argument I could have declared #3 is no longer an issue now that you fixed #2 since both behave consistently. #4 Is the biggest issue because command line parameters should always take precedence and that is not the case only when using I would say that While I think #4 should be very high on priority to be fixed, I'm starting to wonder if I should define workflow template with Again, thanks for fixing #2. I just tested it and it works. |
Summary
What happened/what you expected to happen?
I have declared
templateDefaults.inputs.parameters.value|valueFrom.configMapKeyRef
in workflow template referenced bytemplates
via workflow steps and the following issues are observed:templates.[name].inputs.parameters.[name]
is not enough and requiresvalue
ordefault
etc.value
anddefault
are not required in other casestemplateDefaults.inputs.parameters.value
does not overwritetemplates.[name].inputs.parameters.[name].value|default
templateDefaults.inputs.parameters.valueFrom.configMapKeyRef
does overwritevalue
ordefault
. This is inconsistenttemplateDefaults.inputs.parameters.value|valueFrom.configMapKeyRef
What version of Argo Workflows are you running?
argo: v3.2.0-rc5
Diagnostics
Either a workflow that reproduces the bug, or paste you whole workflow YAML, including status, something like:
Expected Output:
"firstMessageFromCommandLine"
"value from templateDefaults"
"last message from config map"
Actual Output:
"first message from config map"
""
"last message from config map"
I'm at a loss here. I'm working on translator from Oozie to Argo workflows but I cannot see consistent pattern for paremeters propagation and order of preference!?
Message from the maintainers:
Impacted by this bug? Give it a 👍. We prioritise the issues with the most 👍.
The text was updated successfully, but these errors were encountered: