Skip to content

Commit

Permalink
Ignore "release: not found" error on helm_resource destroy (#1487)
Browse files Browse the repository at this point in the history
* Ignore "release: not found" error on helm_resource destroy

---------

Co-authored-by: Alex Pilon <[email protected]>
  • Loading branch information
sbocinec and appilon authored Sep 24, 2024
1 parent 62d34d2 commit 3c08ca9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .changelog/1487.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:bug
`helm_release`: On destroy, do not error when release is not found
```
2 changes: 1 addition & 1 deletion helm/resource_release.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

Expand Down

0 comments on commit 3c08ca9

Please sign in to comment.