-
Notifications
You must be signed in to change notification settings - Fork 12
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
Float and bool values are changed to int #452
Comments
After manual edit of Cloud Run service in GCP Console, refresh I'm doing pulumi up and it tries to change this values again.
After accepting changes |
Not sure if this is the same or different to #453 |
@Mistic92 curious if you're using project level configuration? If so, you should be able to declare the desired type of your config values |
@aq17 I don't know whether the OP was, but I already tried that (see #453) and it makes no difference. The only thing that worked for me was defining the values like this cloud_run:APP_USE_PPROF: |-
"false"
cloud_run:APP_TRACE_SAMPLING_RATE: |-
"0.01" which seems to force Pulumi to treat them as strings. I don't know if this trick would work for the OP though, since my problem was slightly different - I was trying to define values in the config, and pulumi was converting them into types like boolean and integer, when the provider actually wanted strings. |
We are using stack configuration scope. We have moved back to Go as after 3 weeks there was no update on this bug. Maybe we'll try again to use yaml in the future. |
I'm now having this problem again but (sort of) in reverse. I have values I need to be |
What happened?
In Pulumi.develop.yaml I have values like below
In Pulumi.yaml I'm using them in GCP Cloud Run service
When I do
pulumi up
float values are converted to int so my0.01
is0
.I found out that using
,
instead of.
does not change value so0,01
give0,01
but my app won't handle that.Also bool values are converted from false/true to 0/1.
Expected Behavior
Support float and don't change bool to int.
Steps to reproduce
Use Pulumi YAML with GCP Cloud Run service.
Output of
pulumi about
Additional context
No response
Contributing
Vote on this issue by adding a 👍 reaction.
To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already).
The text was updated successfully, but these errors were encountered: