Skip to content

sync: suffix cleanup finalizers with agent identity - #218

Open
neolit123 wants to merge 1 commit into
kcp-dev:mainfrom
neolit123:172-track-agent-names-in-cleanup-finalizers
Open

neolit123 wants to merge 1 commit into
kcp-dev:mainfrom
neolit123:172-track-agent-names-in-cleanup-finalizers

Conversation

@neolit123

@neolit123 neolit123 commented Nov 30, 2026 •

Copy link
Copy Markdown

Summary

Suffix cleanup finalizers with a short hash of the agent name to allow for clearer object ownership.

This prevents a primary object that references a related object owned by another agent to not get stuck in deletion.

Treat the old finalizer without suffix as legacy
and migrate it.

What Type of PR Is This?

/kind bug feature

Related Issue(s)

Fixes #172
(also one half of #117 as it overlaps with #172)

Release Notes

feat/bugfix: each agent now uses its own cleanup finalizer `syncagent.kcp.io/cleanup-<hash>` instead of the shared `syncagent.kcp.io/cleanup`. This prevents a primary object that references a related object owned by another agent to not get stuck in deletion. The old, shared finalizer is now legacy and is migrated automatically for existing objects.

@kcp-ci-bot kcp-ci-bot added release-note Denotes a PR that will be considered when it comes time to generate release notes. kind/bug Categorizes issue or PR as related to a bug. dco-signoff: yes Indicates the PR's author has signed the DCO. kind/feature Categorizes issue or PR as related to a new feature. labels Nov 30, 2026
@kcp-ci-bot

Copy link
Copy Markdown
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 assign embik for approval. For more information see the Code Review Process.

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

Details 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

@kcp-ci-bot kcp-ci-bot added the size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. label Nov 30, 2026
Suffix cleanup finalizers with a short hash of the
agent name to allow for clearer object ownership.

This prevents a primary object that references a related
object owned by another agent to not get stuck in deletion.

Treat the old finalizer without suffix as legacy
and migrate it.

Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
@neolit123
neolit123 force-pushed the 172-track-agent-names-in-cleanup-finalizers branch from d1a6b68 to 8098449 Compare November 30, 2026 15:08

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dco-signoff: yes Indicates the PR's author has signed the DCO. kind/bug Categorizes issue or PR as related to a bug. kind/feature Categorizes issue or PR as related to a new feature. release-note Denotes a PR that will be considered when it comes time to generate release notes. size/XL Denotes a PR that changes 500-999 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug: finalizer "syncagent.kcp.io/cleanup" on related resources block deletion of primary object

2 participants