Skip to content

sync: track owners of shared related object copies - #219

Merged
kcp-ci-bot merged 1 commit into
kcp-dev:mainfrom
neolit123:117-refcount-shared-related-objects
Dec 2, 2026
Merged

kcp-ci-bot merged 1 commit into
kcp-dev:mainfrom
neolit123:117-refcount-shared-related-objects

Conversation

@neolit123

Copy link
Copy Markdown
Contributor

Summary

What Type of PR Is This?

first commit is from:

Label each object copy of a related object with one owner label
per primary object - syncagent.kcp.io/related-owner-<hash>.
Deleting or pruning one primary object only drops its own label
while other primary objects still use the copy. The agent's
finalizer on the origin object is released only once the last
owner label is removed.

/kind bug feature

Related Issue(s)

Fixes #117

Release Notes

feat/bugfix: related objects referenced by multiple primary objects are no longer deleted and their cleanup finalizer no longer released while other primary objects still use them. Achieve that my having one owner label per primary object - `syncagent.kcp.io/related-owner-<hash>`.

@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. kind/feature Categorizes issue or PR as related to a new feature. dco-signoff: yes Indicates the PR's author has signed the DCO. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. labels Nov 30, 2026
@kcp-ci-bot kcp-ci-bot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Dec 2, 2026
@neolit123
neolit123 force-pushed the 117-refcount-shared-related-objects branch from fa8a995 to b408c18 Compare December 2, 2026 12:25
@kcp-ci-bot kcp-ci-bot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Dec 2, 2026
@neolit123

Copy link
Copy Markdown
Contributor Author

/hold

i need to rebase after

@kcp-ci-bot kcp-ci-bot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Dec 2, 2026
@neolit123

Copy link
Copy Markdown
Contributor Author

/hold cancel

@kcp-ci-bot kcp-ci-bot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Dec 2, 2026
Label each object copy of a related object with one owner label
per primary object - `syncagent.kcp.io/related-owner-<hash>`.
Deleting or pruning one primary object only drops its own label
while other primary objects still use the copy. The agent's
finalizer on the origin object is released only once the last
owner label is removed.

Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
@neolit123
neolit123 force-pushed the 117-refcount-shared-related-objects branch from b408c18 to 8f55913 Compare December 2, 2026 12:48
@kcp-ci-bot kcp-ci-bot added size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. and removed size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. labels Dec 2, 2026
@xrstf

xrstf commented Dec 2, 2026

Copy link
Copy Markdown
Contributor

/lgtm

@kcp-ci-bot kcp-ci-bot added the lgtm Indicates that a PR is ready to be merged. label Dec 2, 2026
@kcp-ci-bot

Copy link
Copy Markdown
Contributor

LGTM label has been added.

DetailsGit tree hash: a5a3b5dd0adcafa484222e95c82b009e724df0ee

@xrstf

xrstf commented Dec 2, 2026

Copy link
Copy Markdown
Contributor

/approve

@kcp-ci-bot

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: xrstf

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

The pull request process is described 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 approved Indicates a PR has been approved by an approver from all required OWNERS files. label Dec 2, 2026
@kcp-ci-bot
kcp-ci-bot merged commit 0a1951e into kcp-dev:main Dec 2, 2026
12 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. 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. lgtm Indicates that a PR is ready to be merged. 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.

feature: API-SyncAgent finalizer & owner enhancement

3 participants