Open encigem opened 1 week ago
this should be marked as feature not bug
- name: cm-key value: "testVar"
Directly replace it with cm-var here, configMapKeyRef can solve your problem?
I agree that this constitutes a bug. I entered https://github.com/argoproj/argo-workflows/pull/13921 to fix it.
Thanks for the detailed bug report @encigem!
Pre-requisites
:latest
image tag (i.e.quay.io/argoproj/workflow-controller:latest
) and can confirm the issue still exists on:latest
. If not, I have explained why, in detail, in my description below.What happened? What did you expect to happen?
I'm having some issue with variable substitutions for 'inputs.paramters' blocks in Workflow files. For example, i've provided a YAML file which reproduces my issue. In 'step1' the name: "{{workflow.parameters.cm-name-full}}" works within the configMapKeyRef , but with the name: "{{workflow.parameters.cm-name}}-cm" in step2 it does not.
What Happened?: The step with partial variable string input failed, but the step with input consisting only of a string with a variable succeeded.
What I expected?: I expected that both of the steps should've been able to substitute the given variable in the 'inputs.parameters' block
Version(s)
v3.5.10, latest(b26ed4aa4dee395844531efa4a76a022183bec22)
Paste a minimal 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