-
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
arguments.parameters.value can be referenced as local variable but arguments.parameters.valueFrom.configMapKeyRef can be referenced only as global variable #6869
Comments
Could you try this example? This example uses local variables as well. https://github.com/argoproj/argo-workflows/blob/master/examples/arguments-parameters-from-configmap.yaml |
@terrytangyuan I already tried above workflow and this one works as expected |
Thanks, I was able to reproduce. It seems like this case is not supported yet: local parameters defined in In other words, the following should work but it doesn't:
I can look into this when I get a chance but in the meantime would you or anyone else watching this issue like to submit a PR to fix this? |
I am trying to fix this bug. PR: #6898 |
…ariable. Fixes argoproj#6869 (argoproj#6898) Signed-off-by: kriti-sc <kathuriakriti1@gmail.com>
Summary
arguments.parameters.value
can be referenced as a local variable using {{input.parameters.param-name}} butarguments.parameters.valueFrom.configMapKeyRef
can be referenced only as global variable {{workflow.parameters.param-name}}. This is inconsistent behavior!Issue #3212 was fixed by allowing
valueFrom.configMapKeyRef
What happened/what you expected to happen?
I should be able to access variable declared using
arguments.parameters.valueFrom.configMapKeyRef
as {{input.parameters.param-name}} same as for variable declared asarguments.parameters.value
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:
ConfigMap same as https://github.com/argoproj/argo-workflows/blob/v3.2.0-rc5/examples/configmaps/simple-parameters-configmap.yaml
When I replace
arguments.parameters.valueFrom
witharguments.parameters.value
it worksMessage 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: