Skip to content

Ignore "release: not found" error on helm_resource destroy#1487

Merged
appilon merged 2 commits intohashicorp:mainfrom
sbocinec:uninstall-ignore-not-found
Sep 24, 2024
Merged

Ignore "release: not found" error on helm_resource destroy#1487
appilon merged 2 commits intohashicorp:mainfrom
sbocinec:uninstall-ignore-not-found

Conversation

@sbocinec
Copy link
Contributor

@sbocinec sbocinec commented Sep 17, 2024

Description

Ignore "release: not found" error on helm_resource destroy to address GH-1488

Acceptance tests

  • Have you added an acceptance test for the functionality being added?

Release Note

Release note for CHANGELOG:

resource/helm_release: ignore "release not found" destroy error, addressing [GH-1488](https://github.com/hashicorp/terraform-provider-helm/issues/1488)

References

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Closes #1488

@sbocinec sbocinec requested a review from a team as a code owner September 17, 2024 11:15
@sbocinec sbocinec force-pushed the uninstall-ignore-not-found branch from 6047167 to 8a90b81 Compare September 20, 2024 15:47
@github-actions github-actions bot added size/S and removed size/XS labels Sep 20, 2024
@sbocinec sbocinec force-pushed the uninstall-ignore-not-found branch from 8a90b81 to 64847ff Compare September 20, 2024 15:50
@sbocinec sbocinec changed the title Enable "helm uninstall --ignore-not-found" equivalent behavior Ignore "release: not found" error on helm_resource destroy Sep 20, 2024
})
}

func TestAccResourceRelease_destroy_ignoreReleaseNotFoundError(t *testing.T) {
Copy link
Contributor

@appilon appilon Sep 20, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's not really something we tend to test for let's remove the acceptance test and just go with the codechange. We will run the full suite of tests to ensure no regressions.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

okay, I have removed it

@sbocinec sbocinec force-pushed the uninstall-ignore-not-found branch from 64847ff to e1fa892 Compare September 22, 2024 21:56
@github-actions github-actions bot added size/XS and removed size/S labels Sep 22, 2024
@sbocinec sbocinec requested a review from appilon September 23, 2024 13:31
@appilon
Copy link
Contributor

appilon commented Sep 23, 2024

I will add the changelog entry for you and get this merged

@sbocinec
Copy link
Contributor Author

@appilon I think, we must revert this PR - I have just tested it once it was released yesterday, and it panics #1500

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 12, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Handle "release not found" errors thrown on uninstall / equivalent to helm uninstall --ignore-not-found

2 participants