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

🐛 Add skip validate delete webhook annotation #141

Merged

Conversation

christianang
Copy link
Contributor

What this PR does / why we need it:

This PR adds a ipam.cluster.x-k8s.io/skip-validate-delete-webhook annotation that can be added to pools to skip delete validation. This is necessary for clusterctl move to work because it attempts to delete everything off the source cluster and it cannot control the order of deletion so it may delete pools before ipaddressclaims.

Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):
Related to #140

- this is necessary for clusterctl move to work because it attempts to
  delete everything off the source cluster and it cannot control the
  order of deletion so it may delete pools before ipaddressclaims

Co-authored-by: Edwin Xie <[email protected]>
@christianang christianang requested a review from schrej as a code owner May 9, 2023 22:22
Copy link
Member

@schrej schrej left a comment

Choose a reason for hiding this comment

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

lgtm otherwise

internal/webhooks/inclusterippool.go Show resolved Hide resolved
@schrej schrej merged commit fac8e38 into kubernetes-sigs:main May 12, 2023
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.

2 participants