diff --git a/.changelog/1487.txt b/.changelog/1487.txt new file mode 100644 index 000000000..03f323e30 --- /dev/null +++ b/.changelog/1487.txt @@ -0,0 +1,3 @@ +```release-note:bug +`helm_release`: On destroy, do not error when release is not found +``` diff --git a/helm/resource_release.go b/helm/resource_release.go index 8b0299be7..d5819587c 100644 --- a/helm/resource_release.go +++ b/helm/resource_release.go @@ -865,7 +865,7 @@ func resourceReleaseDelete(ctx context.Context, d *schema.ResourceData, meta int uninstall.Timeout = time.Duration(d.Get("timeout").(int)) * time.Second res, err := uninstall.Run(name) - if err != nil { + if err != nil && !errors.Is(err, driver.ErrReleaseNotFound) { return diag.FromErr(err) }