Browse Source

Purge release on FHR delete

Stefan Prodan 1 year ago
parent
commit
0034821fc6
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      integrations/helm/release/release.go

+ 2
- 2
integrations/helm/release/release.go View File

@@ -246,7 +246,7 @@ func (r *Release) Install(checkout *helmgit.Checkout, releaseName string, fhr if
246 246
 	}
247 247
 }
248 248
 
249
-// Delete deletes Chart release
249
+// Delete purges a Chart release
250 250
 func (r *Release) Delete(name string) error {
251 251
 	ok, err := r.canDelete(name)
252 252
 	if !ok {
@@ -257,7 +257,7 @@ func (r *Release) Delete(name string) error {
257 257
 	}
258 258
 
259 259
 	r.Lock()
260
-	_, err = r.HelmClient.DeleteRelease(name)
260
+	_, err = r.HelmClient.DeleteRelease(name, k8shelm.DeletePurge(true))
261 261
 	r.Unlock()
262 262
 	if err != nil {
263 263
 		r.logger.Log("error", fmt.Sprintf("Release deletion error: %#v", err))

Loading…
Cancel
Save