-
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
in comparator does not work when there is only one value inside the parenthesis #4356
Comments
Would you like to dig into the code and see if you can find the cause? |
In workflow/controller/steps.go, there is this function. Its probably line 321 that is causing the error
|
This does not seem to be a bug in argo but a bug in govaluate. I found this issue in their github. |
Closed as a non-argo issue. As a thought, if you want |
because in my application, the value inside the parenthesis is dynamically generated by another step. my solution was to add random characters as placeholders to make sure that there are always at least two items. |
Summary
"in" is now supported in conditionals but I am getting an error when trying to use it with only one value inside the parenthesis
Here is the error I got:
However if I use
when: "a in (a,b)"
then it works.Diagnostics
What Kubernetes provider are you using?
Kubernetes in IBM cloud
What version of Argo Workflows are you running?
v2.11.6
Here's an example of a workflow that fails
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: