Fix chart linting issues in our helm chart #445
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
Whenever we raise a PR to the https://github.com/mongodb/helm-charts/ repo to release the helm chart, as part of the CI linting of the chart is done.
And that linting fails because there are some issues in our chart. The issue is a space character at the end of this file here.
To get the PR in, in the
helm-charts
repo we just fixed the problem in that repo and didn't make the changes here in the MCK repo. This PR makes the change in MCK repo and in the next PR I am going to add chart linting as part of the lint_repo task so that we will always lint of charts.When we just go ahead and remove the trailing space from the mentioned line, our pre-commit hook doesn't pass. And the reason is when pre-commit hooks tries to update the version is chart.yaml here, the library (
ruamel.yaml.YAML()
) that is used to update the yaml automatically adds a trailing space in that line. So, in other words, even if we manually remove the trailing space, our CI complains that there are some files that are not added after running pre-commit, and when we run pre-commit, the extra trailing space is added automatically.To fix that problem we are slightly changing the way we were adding description to the chart.yaml, and now we are using the correct way of adding multi line values in a yaml file.
Proof of Work
Checklist
skip-changelog
label if not needed