Skip to content
This repository has been archived by the owner on Nov 1, 2022. It is now read-only.

Purge release on FHR delete #1106

Merged
merged 1 commit into from
May 29, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions integrations/helm/release/release.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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))
Expand Down