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

Feat: cleanup ig resources #51

Closed
wants to merge 8 commits into from
Closed

Conversation

csmartins
Copy link
Collaborator

Context

When the clusters/igs are deleted, we must also clean up the resources that reference those objects like security groups. SGs have a list of referenced infrastructure resources which the reconciliation loop needs to ensure is up to date with the actual existing resources.

Solution

During the reconciliation loop, our provider checks the existence of every resource referenced by the SG. The resources that doesn't exist anymore are removed from the list and if by the end of this process there are no more resources being referenced, the SG is deleted. These changes also covers the use case when we just want to delete the SG keeping the machine pools referenced.

@csmartins csmartins closed this Feb 20, 2024
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.

1 participant