Skip to content
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

Exclude nil entries from values for helm charts #1845

Merged
merged 3 commits into from
Dec 22, 2021

Conversation

viveklak
Copy link
Contributor

@viveklak viveklak commented Dec 21, 2021

Proposed changes

Avoid panics related to invalid/nil values for helm charts/releases which can cause assertion failures when converting to property maps as in #1842.

Related issues (optional)

Fixes #1842

@github-actions
Copy link

Does the PR have any schema changes?

Looking good! No breaking changes found.
No new resources/functions.

1 similar comment
@github-actions
Copy link

Does the PR have any schema changes?

Looking good! No breaking changes found.
No new resources/functions.

@github-actions
Copy link

Does the PR have any schema changes?

Looking good! No breaking changes found.
No new resources/functions.

@viveklak viveklak changed the title Exclude nil entries from values Exclude nil entries from values for helm charts Dec 21, 2021
src: map[string]interface{}{
"a": map[string]interface{}{
"b": map[string]interface{}{
"c": interface{}(nil),
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Without the change, running the resulting merged map through resource.NewPropertyMap() would result in a assertion failure.

@viveklak viveklak merged commit cb2803c into master Dec 22, 2021
@pulumi-bot pulumi-bot deleted the vl/FilterNilFromValues branch December 22, 2021 03:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

pulumi panics while importing an existing helm release
2 participants