-
Notifications
You must be signed in to change notification settings - Fork 117
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
Empty array value ignored in Helm Chart #2089
Comments
Thanks for the bug report! This seems to be caused due to our exclusion of nulls in values:
|
This issue is affecting me as I attempt to use Pulumi to manage helm deployments of Apache Superset. That chart has an Noting the comment above, I thought I'd see if I could get a patch working to allow one to optionally pass null values through However, I figured I'd put this link up- if anyone has any advice or comments, I'm all ears. Please bear with me as I am not a Go developer :) https://github.com/cdibble/pulumi-kubernetes/pull/1/files |
What happened?
I tried to deploy a helm chart, setting a config key to an empty array value (i.e.
[]
). The key was omitted entirely.Steps to reproduce
Only the second step is really needed, but doing the first one makes the output of
pulumi preview --diff
show the issue clearly.Deploy a Helm chart, where a key is set to a non-empty value. For example, this one:
Then, set the key to an empty value:
Preview the second change, with
pulumi preview --diff
.Expected Behavior
I expect to see the
tolerations
key replaced with an empty array, probably like so (though I can't generate actual output due to this bug):Actual Behavior
The
tolerations
key is deleted entirely (note the symbol in front oftolerations
is a-
, I expected a~
).Versions used
Additional context
This may be caused by the same underlying issue as #2034.
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: