Skip to content

fix: Retry adding finalizers to referenced objects on conflict#372

Open
helderjs wants to merge 1 commit intocrossplane-contrib:mainfrom
helderjs:fix-references-finalizer-mgm
Open

fix: Retry adding finalizers to referenced objects on conflict#372
helderjs wants to merge 1 commit intocrossplane-contrib:mainfrom
helderjs:fix-references-finalizer-mgm

Conversation

@helderjs
Copy link
Copy Markdown

Description of your changes

This pull request updates the finalizer logic for Object resources and their references in the provider-kubernetes project. It ensures that finalizers are correctly added to both the managed resource and any referenced resources, improving cleanup and dependency handling.

Fixes #371

I have:

  • Read and followed Crossplane's contribution process.
  • Run make reviewable test to ensure this PR is ready for review.

How has this code been tested

This change has been covered by comprehensive unit tests in internal/controller/object/object_test.go,

Signed-off-by: Helder Santana <contato@heldersantana.net>
Copy link
Copy Markdown
Collaborator

@turkenh turkenh left a comment

Choose a reason for hiding this comment

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

Thanks for the PR @helderjs.

However, this is a functionality that we plan to deprecate, so, I am not willing to introduce behavioral changes at this moment. See #259

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.

Race Condition in Parallel Reconciliation Prevents Finalizer Addition to Referenced Objects

2 participants