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

🐛 Fix ReleaseAddress not getting called during claim deletion in some cases #324

Closed
wants to merge 2 commits into from

Conversation

schrej
Copy link
Member

@schrej schrej commented Mar 24, 2025

What this PR does / why we need it:
In some cases ReleaseAddress was not called by the ClaimReconciler during deletion of a claim. This was caused by ReleaseAddress being called outside of reconcileDeletion during a 'regular' deletion reconciliation. There were two additional instances of reconcileDeletion getting called in case the Cluster or the IP pool could not be found. In those two cases we were not calling ReleaseAddress.

In addition this PR also introduces immediate reconciliation after adding our finalizer to a claim, to avoid race conditions.

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

@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Mar 24, 2025
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please ask for approval from schrej. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Mar 24, 2025
There were two cases where deletion of a claim was reconciled without calling ClaimHandler.ReleaseAddress, which causes issues for providers that manage addresses in external systems.
@schrej schrej force-pushed the fix/reconcile-delete branch from 167f31e to c27549f Compare March 24, 2025 17:43
@schrej schrej changed the title 🐛 Fix ReleaseAddress not getting called during claim deletion in some cases. 🐛 Fix ReleaseAddress not getting called during claim deletion in some cases Mar 24, 2025
@schrej
Copy link
Member Author

schrej commented Mar 25, 2025

/hold
for testing

@k8s-ci-robot k8s-ci-robot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Mar 25, 2025
@schrej
Copy link
Member Author

schrej commented Mar 28, 2025

/close in favor of 329

@schrej schrej closed this Mar 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants