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

Fix bug in values merging when ci directory exists #466

Merged
merged 1 commit into from
Aug 14, 2024

Conversation

komish
Copy link
Contributor

@komish komish commented Aug 14, 2024

We were incorrectly assigning values contents into a transient variable where we intended to capture its value in variable assigned in one of the upper scopes. As a result, if a helm chart happened to have a ci directory (which has significance in chart-testing), then we'd end up with no values at all because we'd serialize an empty struct into a temporary values file and use that for testing.

This PR fixes that and also migrates a mergo function that's deprecated to its replacement implementation.

Fixes #465

Copy link

@jsm84 jsm84 left a comment

Choose a reason for hiding this comment

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

/lgtm

@komish komish merged commit d5416ed into redhat-certification:main Aug 14, 2024
6 checks passed
@komish komish deleted the bugfix-ci-dir-values-merge branch August 14, 2024 19:51
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.

I can't override my Chart values
2 participants