Skip to content

Conversation

llxp
Copy link
Contributor

@llxp llxp commented Mar 28, 2025

What this PR does / why we need it:
This PR is based on the changes from @schrej and fixes a bug, where ReleaseAddress is not getting called during deletion.
Additionally it fixes an error regarding to error handling:
err := errors.New("pool not found")
This hides the error of FetchPool(). Instead it should be wrapped/enhanced by the new error.
And changes some behaviour regarding the finalizer patching. The defer is moved down and the finalizer patching is now done explicitly instead of implicitly by the defer.

@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Mar 28, 2025
@k8s-ci-robot k8s-ci-robot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Mar 28, 2025
Copy link
Member

@mcbenjemaa mcbenjemaa left a comment

Choose a reason for hiding this comment

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

Duplicated #324

/hold

@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 28, 2025
@schrej schrej changed the title 🐛 fixing a bug 🐛 properly handle deletion of IPAddressClaims in ipamutil.Reconciler Mar 28, 2025
@schrej schrej requested review from schrej and removed request for srm09 March 28, 2025 13:33
@schrej
Copy link
Member

schrej commented Mar 28, 2025

I've closed the duplicate, but will keep the hold for further internal testing in conjunction with our Infoblox provider.

@llxp llxp force-pushed the fix/reconcile-delete branch from 4d0c99d to d15f570 Compare March 28, 2025 15:09
@schrej schrej changed the title 🐛 properly handle deletion of IPAddressClaims in ipamutil.Reconciler 🐛 properly handle deletion of IPAddressClaims in ipamutil.ClaimReconciler Mar 28, 2025
@llxp llxp force-pushed the fix/reconcile-delete branch from d15f570 to 3e32453 Compare April 17, 2025 14:36
@schrej schrej force-pushed the fix/reconcile-delete branch from 3e32453 to fa644f4 Compare April 17, 2025 14:48
@k8s-ci-robot k8s-ci-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label May 14, 2025
@llxp llxp force-pushed the fix/reconcile-delete branch from fa644f4 to c45e66c Compare May 22, 2025 18:23
@k8s-ci-robot k8s-ci-robot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label May 22, 2025
schrej and others added 3 commits June 2, 2025 15:00
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 c45e66c to 8ba8b73 Compare June 2, 2025 12:01
@schrej
Copy link
Member

schrej commented Jun 2, 2025

/unhold
/lgtm
/approve

@k8s-ci-robot k8s-ci-robot added lgtm "Looks good to me", indicates that a PR is ready to be merged. and removed do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. labels Jun 2, 2025
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: schrej

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

The pull request process is described 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 approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jun 2, 2025
@k8s-ci-robot k8s-ci-robot removed the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Jun 2, 2025
@schrej
Copy link
Member

schrej commented Jun 2, 2025

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Jun 2, 2025
@k8s-ci-robot k8s-ci-robot merged commit 01f9a1e into kubernetes-sigs:main Jun 2, 2025
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. 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.

4 participants