helm/pkg
Timofey Kirillov da8e7d2532
fix: "... has no deployed releases" error when release history contains only failed releases and history limit reached
Fixed old releases rotation procedure to not require a deployed release to exists.

An error will arise when there are no successfully deployed release yet, but releases history limit has been reached. In such situation helm will refuse to upgrade release anymore with "... has no deployed releases" error.

Furthermore, release rotation procedure already expecting lastDeployedRelease to be either nil, or not nil. So it is assumed that deployed release may exist or may not and these both outcomes were already expected as a valid situation rather than a failure.

Reworked storage_test.go TestStorageRemoveLeastRecentWithError test case: use mocked driver and test release creation procedure does not shadows errors from the underneath release rotation procedure.

Signed-off-by: Timofey Kirillov <timofey.kirillov@flant.com>
2022-03-31 10:22:42 +03:00
..
action Merge pull request #9751 from cndoit18/fix-issue-9747 2022-03-11 12:39:09 -08:00
chart test: use T.TempDir to create temporary test directory 2022-02-12 13:54:54 +08:00
chartutil test: use T.TempDir to create temporary test directory 2022-02-12 13:54:54 +08:00
cli Handle Hungarian notation issue 2022-01-20 15:36:10 +00:00
downloader test: use T.TempDir to create temporary test directory 2022-02-12 13:54:54 +08:00
engine Fixing issue with non-existant .Template when using tpl function 2021-08-31 10:19:54 -04:00
gates pkg/gates: add unit test for String 2020-02-17 13:48:12 +08:00
getter Dont modify provided transport 2022-02-22 17:54:10 +01:00
helmpath Use buffered channel for signal notification 2021-11-16 15:42:48 +00:00
kube Merge pull request #10209 from yxxhero/fix_sa_issue 2022-01-10 18:05:17 +00:00
lint test: use T.TempDir to create temporary test directory 2022-02-12 13:54:54 +08:00
plugin test: use T.TempDir to create temporary test directory 2022-02-12 13:54:54 +08:00
postrender fix: fix args name in postrender/exec_test.go and error if order in postRendererArgsSlice 2022-01-22 11:46:30 +08:00
provenance Add nolint comments 2021-11-16 12:13:39 -05:00
pusher Moving uploader and pusher out of action into pkg 2022-01-13 08:22:51 -05:00
registry Merge pull request #10558 from sabre1041/bearer-token-oci 2022-01-26 10:06:50 -06:00
release chore: Spelling (#9410) 2021-03-15 21:11:57 -04:00
releaseutil Add IngressClass to manifests to be (un)installed 2022-02-04 11:34:32 +00:00
repo test: use T.TempDir to create temporary test directory 2022-02-12 13:54:54 +08:00
storage fix: "... has no deployed releases" error when release history contains only failed releases and history limit reached 2022-03-31 10:22:42 +03:00
strvals fix conflict 2020-07-01 21:38:44 +08:00
time remove redudant time func 2020-09-23 23:32:56 +02:00
uploader Replace golint with revive 2022-01-20 15:19:40 +00:00