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

protect pools with IP allocations from deletion #124

Merged
merged 2 commits into from
May 9, 2023

Conversation

adobley
Copy link
Contributor

@adobley adobley commented Apr 19, 2023

Adds a finalizer to prevent pool deletion when IPs are still allocated

Adds a delete webhook check that will ensure pools with allocated IPs cannot be removed

This change relies on work in #116, when that is merged we can rebase this.

Fixes #114

@adobley adobley requested a review from schrej as a code owner April 19, 2023 19:17
@christianang christianang force-pushed the guard-pool-deletion branch 2 times, most recently from 1bd8b63 to fbceb13 Compare April 19, 2023 19:33
@schrej
Copy link
Member

schrej commented May 4, 2023

#116 is in now!

- this finalizer will prevent the pool from being deleted if there are
  existing ipaddresses from the pool

Co-authored-by: Edwin Xie <[email protected]>
@flawedmatrix flawedmatrix force-pushed the guard-pool-deletion branch from fbceb13 to bca3ee7 Compare May 8, 2023 21:15
checks for any ipaddresses allocated from the pool before allowing
deletion in the delete webhook

Co-authored-by: Christian Ang <[email protected]>
@flawedmatrix flawedmatrix force-pushed the guard-pool-deletion branch from bca3ee7 to 9c880ab Compare May 8, 2023 21:29
@schrej schrej merged commit c6c3e4c into kubernetes-sigs:main May 9, 2023
@adobley adobley deleted the guard-pool-deletion branch July 14, 2023 19:12
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.

Prevent pool deletion if IPAddress exists for pool
3 participants