Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: reinstall previously uninstalled chart with --keep-history
Before, if a chart was uninstalled using the `--keep-history` flag, the next attempt to upgrade/install the chart would result in an error. This commit fixes that by correctly checking if the last release of the chart stored in history has been uninstalled and running the install with the `--replace` flag if that's the case. Signed-off-by: Alex Petrov <alex.petrov.vt@gmail.com> (cherry picked from commit 9e198fa)
- Loading branch information
1 parent
fb3d880
commit 5a11c76
Showing
3 changed files
with
19 additions
and
1 deletion.
There are no files selected for viewing
7 changes: 7 additions & 0 deletions
7
cmd/helm/testdata/output/upgrade-uninstalled-with-keep-history.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
Release "funny-bunny" does not exist. Installing it now. | ||
NAME: funny-bunny | ||
LAST DEPLOYED: Fri Sep 2 22:04:05 1977 | ||
NAMESPACE: default | ||
STATUS: deployed | ||
REVISION: 3 | ||
TEST SUITE: None |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters