helm codegen additionalValues
flattening does not handle null
props
#2139
Labels
bug
Something isn't working
@component/cdk8s-cli
Issue related to cdk8s-cli
effort/small
1 day tops
priority/p2
Dependent on community feedback. PR's are welcome :)
Description of the bug:
Importing goldilocks chart result in a destructuring error.
Props can be
null
occasionally.Reproduction Steps:
Import goldilocks helm chart, pass values.
Error Log:
Codegen should be able to handle null
props
Environment:
Other
Fixable with a small codegen change over here
code.line('const { additionalValues, ...valuesWithoutAdditionalValues } = props;');
Should be
code.line('const { additionalValues, ...valuesWithoutAdditionalValues } = props || {};');
the way I see it.
Needs confirmation.
This is 🐛 Bug Report
The text was updated successfully, but these errors were encountered: