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: clear v1beta2 helm directory before writing new charts #4048

Merged
merged 3 commits into from
Sep 26, 2023

Conversation

cbodonnell
Copy link
Contributor

@cbodonnell cbodonnell commented Sep 26, 2023

What this PR does / why we need it:

This PR fixes an issue where the charts from the previously deployed version were not being removed if they were no longer part of the current version. This happened because the helm directory for v1beta2 charts was not cleared out before the charts for the current version were written, so even if the chart was not part of the current version, KOTS would still include it as part of the deployment.

Which issue(s) this PR fixes:

https://app.shortcut.com/replicated/story/89845/v1beta2-helm-charts-don-t-get-removed-when-excluded-later-on

Special notes for your reviewer:

Steps to reproduce

Install a chart that has a conditional exclude field from a config option. Toggle the config option to exclude the chart. Observe that the chart is excluded and uninstalled.

Does this PR introduce a user-facing change?

Fixes an issue where previously deployed v1beta2 helm charts were not being uninstalled as expected after making configuration changes to exclude the chart.

Does this PR require documentation?

NONE

@cbodonnell cbodonnell changed the title clean helm dir before writing clear helm dir before writing Sep 26, 2023
@cbodonnell cbodonnell changed the title clear helm dir before writing fix: clear v1beta2 helm directory before writing new charts Sep 26, 2023
@cbodonnell cbodonnell added type::bug Something isn't working bug::regression labels Sep 26, 2023
@cbodonnell cbodonnell marked this pull request as ready for review September 26, 2023 16:38
sgalsaleh
sgalsaleh previously approved these changes Sep 26, 2023
@cbodonnell cbodonnell merged commit c877d13 into main Sep 26, 2023
79 checks passed
@cbodonnell cbodonnell deleted the cbo/clean-existing-helm-dir branch September 26, 2023 20:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug::regression type::bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants