feat: add skippackaging
option to helm target
#1641
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.
On Helm chart updates, provide the option to skip the packaging phase of the update. This provides the end user with two main benefits:
updatecli
to update the metadata on their chart(s) while leveraging other mechanisms to handle the actual packaging and publishing, such as the chart-releaser-action action.helmchart
target with anscmid
defined, the compressed binary files for the chart dependencies will not be committed into the repository.Test
Note: I spent some time looking in the existing tests, but didn't see an obvious way to test if files had been created on disk within the current paradigm. I'm open to suggestions or thoughts about how to handle this though. What I can offer however, are the tests I ran locally to validate both the new functionality and existing (default) behavior.
Steps
Chart.yaml
to include at least one dependency, ensuring the version picked is outdatedconfig.yaml
target spec to useskippackaging: true
orskippackaging: false
based on desired testupdatecli --config config.yaml apply
Skip Packaging Test
Create a test Helm chart
Chart.yaml before running
updatecli
config.yaml
Chart.yaml after running
updatecli
Chart state after running
updatecli
Don't Skip Packaging Test
Create a test Helm chart
Chart.yaml before running
updatecli
config.yaml
Chart.yaml after running
updatecli
Chart state after running
updatecli
Additional Information
Tradeoff
Potential improvement