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
aws-eks: HelmChart values discards null values #30000
Comments
This is new to me, I appreciate it. Do you have any public doc link of any public helm charts with |
Hi, thanks for responding. I encountered this when setting up the opentelemetry-collector chart. It has a lot of default-enabled receivers and the doc suggests disabling the unneeded elemenets by setting them to null: https://opentelemetry.io/docs/kubernetes/helm/collector/#configuration (the second code block in the url shows an example) |
Describe the bug
Given a Helmchart config where values if configured like this:
the generated cloudformation template seems to completely discard any elements with a
None
/null value. These are important as they allow disabling default-enabled items in some helm charts.Expected Behavior
All items including those with a null value should be carried over into the resulting helm chart values
Values json in cloudformation template should read:
Current Behavior
elements with null values are discarded, snippet from
cdk synth
, generated from example code:Reproduction Steps
See bug description
Possible Solution
No response
Additional Information/Context
Since HelmChart is a custom resource, it's not possible for users to use the normal "escape hatch" methods to get around the bug - those methods aren't available on the object it seems.
CDK CLI Version
2.127.0
Framework Version
2.139.0
Node.js Version
v20.12.2
OS
Ubuntu 23.1
Language
Python
Language Version
Python 3.11
Other information
No response
The text was updated successfully, but these errors were encountered: