From 0034821fc6d35e1c0c95554da2f3bf0e5cc15bbc Mon Sep 17 00:00:00 2001 From: Stefan Prodan Date: Tue, 29 May 2018 17:05:26 +0300 Subject: [PATCH] Purge release on FHR delete --- integrations/helm/release/release.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/integrations/helm/release/release.go b/integrations/helm/release/release.go index df66a07cd..0df114293 100644 --- a/integrations/helm/release/release.go +++ b/integrations/helm/release/release.go @@ -246,7 +246,7 @@ func (r *Release) Install(checkout *helmgit.Checkout, releaseName string, fhr if } } -// Delete deletes Chart release +// Delete purges a Chart release func (r *Release) Delete(name string) error { ok, err := r.canDelete(name) if !ok { @@ -257,7 +257,7 @@ func (r *Release) Delete(name string) error { } r.Lock() - _, err = r.HelmClient.DeleteRelease(name) + _, err = r.HelmClient.DeleteRelease(name, k8shelm.DeletePurge(true)) r.Unlock() if err != nil { r.logger.Log("error", fmt.Sprintf("Release deletion error: %#v", err))