Skip to content

Commit

Permalink
fix: ignore helm release purge failed error (#16)
Browse files Browse the repository at this point in the history
  • Loading branch information
hysyeah authored May 27, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent 0d7a3d5 commit b9b6035
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/helm/helm.go
Original file line number Diff line number Diff line change
@@ -104,7 +104,7 @@ func UninstallCharts(cfg *action.Configuration, releaseName string) error {
uninstall := action.NewUninstall(cfg)
uninstall.KeepHistory = false
r, err := uninstall.Run(releaseName)
if err != nil {
if err != nil && r.Release.Info.Status != release.StatusUninstalled {
return err
}
logUninstallReleaseInfo(r)

0 comments on commit b9b6035

Please sign in to comment.