Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 2 commits into from
Sep 24, 2024

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
@github-actions github-actions bot added size/S and removed size/XS labels Sep 20, 2024
@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
@@ -1758,6 +1758,45 @@ func TestAccResourceRelease_delete_regression(t *testing.T) {
})
}

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

@appilon
Copy link
Contributor

appilon commented Sep 23, 2024

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

@appilon appilon merged commit 3c08ca9 into hashicorp:main Sep 24, 2024
20 checks passed
@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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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