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(helm): maintain any existing comments in Chart.yaml #1968

Merged
merged 1 commit into from
May 31, 2023

Conversation

ben-foxmoore
Copy link
Contributor

As raised in #1944, the current approach for Helm charts (using js-yaml library) strips all comments from the file. This PR switches to using the popular yaml library (eemeli/yaml), and then patching the version value directly. This helps maintain any comments which have been added to the Chart.yaml - Renovate comments are the driving cause in our case.

Fixes #1944 🦕

@ben-foxmoore ben-foxmoore requested review from a team as code owners May 31, 2023 15:35
@google-cla
Copy link

google-cla bot commented May 31, 2023

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@product-auto-label product-auto-label bot added the size: s Pull request size is small. label May 31, 2023
@ben-foxmoore
Copy link
Contributor Author

CLA has just been signed.

Copy link
Contributor

@chingor13 chingor13 left a comment

Choose a reason for hiding this comment

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

Thanks! Looks great!

@chingor13 chingor13 merged commit 77de40e into googleapis:main May 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size: s Pull request size is small.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Preserve comments in Helm Chart.yaml when updating version
2 participants