Skip to content

fix: deletion behaviors - #290

Merged
zach-robinson-dev merged 6 commits into
mainfrom
fix/owner-ref
Nov 13, 2026
Merged

zach-robinson-dev merged 6 commits into
mainfrom
fix/owner-ref

Conversation

@zach-robinson-dev

@zach-robinson-dev zach-robinson-dev commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

Cleans up some deletion-related behaviors.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🔵 Needs a closer look

Mock payload tests cannot establish whether server-side apply removes existing targets’ owner references and prevents garbage collection, so retention requires live-cluster validation.

No open issues 🎉

What changed in this PR

This PR refines Sinker’s deletion behavior so target ownership respects retention settings and deletion-related metadata changes trigger reconciliation.

Changes:

  • Limit automatic owner references to local, same-namespace targets with target deletion enabled.
  • Extend event filtering to detect deletion state and deletion-control annotation changes.
  • Add regression coverage and update documentation for ownership, retention, and reconciliation triggers.
File Description
src/​remote_watcher.rs Removes TODO comments; no runtime behavior changes.
src/​controller.rs Updates ownership rules and event filtering, with regression tests.
README.md Explains revised retention behavior and reconciliation triggers.
AGENTS.md Aligns contributor guidance with the updated deletion and ownership rules.

Review effort: Balanced

@zach-robinson-dev
zach-robinson-dev marked this pull request as ready for review November 13, 2026 20:42
@zach-robinson-dev
zach-robinson-dev requested a review from a team as a code owner November 13, 2026 20:42
@zach-robinson-dev
zach-robinson-dev added this pull request to the merge queue Nov 13, 2026
Merged via the queue into main with commit 40e3aa5 Nov 13, 2026
4 checks passed
@zach-robinson-dev
zach-robinson-dev deleted the fix/owner-ref branch November 13, 2026 20:51
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.

3 participants