-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Workflow cannot read float #4478
Labels
Comments
Floats are not allowed in parameter values. It should be a string and can be an int64. To support 'fload64' we would need to modify Would you like to submit a PR? |
Oh - you can quote floats. |
- name: FLOAT
value: "0.2" |
@alexec I am interested to contribute this.Please assign this to me. |
1 task
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Summary
When a workflow parameter is a float, workflow parsing fails with the error message:
Failed to parse workflow: error unmarshaling JSON: while decoding JSON: json: cannot unmarshal number 0.2 into Go struct field Parameter.spec.arguments.parameters.value of type int
What happened/what you expected to happen?
Would expect that the workflow is parsed correctly, float into type float.
Diagnostics
What Kubernetes provider are you using?
kube_version: 1.19.3 > running in VMs as local installation
when i run
kubectl version
:What version of Argo Workflows are you running?
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: