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

Cleanup additional resources during uninstall #820

Merged
merged 9 commits into from
Nov 5, 2021

Conversation

NicoletaPopoviciu
Copy link
Collaborator

@NicoletaPopoviciu NicoletaPopoviciu commented Oct 29, 2021

Changes proposed in this PR:

  • delete any Jobs, cluster roles, and cluster role bindings during an uninstall

How I've tested this PR:

  • ran tests locally

How I expect reviewers to test this PR:

  • code review

Checklist:

  • Tests added
  • CHANGELOG entry added

    HashiCorp engineers only, community PRs should not add a changelog entry.
    Entries should use present tense (e.g. Add support for...)

@NicoletaPopoviciu NicoletaPopoviciu requested review from a team, kschoche and ishustava and removed request for a team October 29, 2021 15:44
CHANGELOG.md Outdated Show resolved Hide resolved
Copy link
Contributor

@kschoche kschoche left a comment

Choose a reason for hiding this comment

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

Most excellent work!!
I had one additional thought, and we don't usually require negative testing, but given this is deleting things would it make sense to add a test where we pass in a different release or namespace to ensure that our code is not actually deleting other people's stuff? If that doesnt make sense I'd be happy to explain :)

Co-authored-by: Kyle Schochenmaier <kschoche@gmail.com>
Copy link
Contributor

@ishustava ishustava left a comment

Choose a reason for hiding this comment

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

🎉

@david-yu
Copy link
Contributor

david-yu commented Nov 4, 2021

Resolved the CHANGELOG conflict, should we go ahead and merge @NicoletaPopoviciu

@NicoletaPopoviciu
Copy link
Collaborator Author

@david-yu I was going to add the negative tests that @kschoche suggested.

Copy link
Contributor

@kschoche kschoche left a comment

Choose a reason for hiding this comment

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

Fantastic work on this, thanks so much, it looks great!

@NicoletaPopoviciu NicoletaPopoviciu merged commit 26b49ed into main Nov 5, 2021
@NicoletaPopoviciu NicoletaPopoviciu deleted the nicoleta-unistall-cleanup-resources branch November 5, 2021 22:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants