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

🐛 Harden deletion logic #111

Merged
merged 8 commits into from
May 3, 2024
Merged

🐛 Harden deletion logic #111

merged 8 commits into from
May 3, 2024

Conversation

lubedacht
Copy link
Contributor

@lubedacht lubedacht commented May 2, 2024

What is the purpose of this pull request/Why do we need it?

Makes sure to delete resources properly when deleting all
resources at once. Also fixes handling for the credential secret
which so far was not properly cleaned up.

Description of changes:

  • Cluster deletion will not succeed when there are still any machines left
  • Credential secrets cannot be deleted as long as the cluster hasn't reached the final deletion step
  • Credential secrets are now properly garbage collected with a controller reference

Checklist:

  • Unit Tests added
  • Includes emojis

Makes sure to delete resources properly when deleting all
resources at once. Also fixes handling for the credential secret
which so far was not properly cleaned up.
@lubedacht lubedacht changed the title Harden deletion logic 🐛 Harden deletion logic May 2, 2024
jriedel-ionos
jriedel-ionos previously approved these changes May 2, 2024
internal/controller/ionoscloudcluster_controller.go Outdated Show resolved Hide resolved
api/v1alpha1/ionoscloudcluster_types.go Show resolved Hide resolved
scope/cluster_test.go Outdated Show resolved Hide resolved
scope/cluster.go Outdated Show resolved Hide resolved
Copy link

sonarqubecloud bot commented May 3, 2024

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

@lubedacht lubedacht merged commit 7b61307 into main May 3, 2024
8 checks passed
@lubedacht lubedacht deleted the harden-deletion-logic branch May 3, 2024 10:04
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