Skip to content

Allow to delete related object copies when the primary object is deleted#164

Merged
kcp-ci-bot merged 5 commits into
kcp-dev:mainfrom
xrstf:extend-deletion-behaviour
May 18, 2026
Merged

Allow to delete related object copies when the primary object is deleted#164
kcp-ci-bot merged 5 commits into
kcp-dev:mainfrom
xrstf:extend-deletion-behaviour

Conversation

@xrstf
Copy link
Copy Markdown
Contributor

@xrstf xrstf commented Apr 30, 2026

Summary

This adds a new option to each RelatedResource, allowing the admin to configure whether the created copies of such related resources should be deleted when the primary object is deleted. By default we don't do this, in case for example a Secret was synced from the service cluster to kcp and is integrated there into other automation: we wouldn't want to break that automation.

But in some scenarios it can make sense to clean up, and this is what this PR enables.

This PR also includes a small improvement to make the RR Watches work if the RR is still using Kind (i.e. GVK) instead of GVR.

What Type of PR Is This?

/kind feature

Related Issue(s)

Fixes #114

Release Notes

NONE

xrstf added 5 commits April 30, 2026 16:48
…figuration

On-behalf-of: @SAP christoph.mewes@sap.com
On-behalf-of: @SAP christoph.mewes@sap.com
On-behalf-of: @SAP christoph.mewes@sap.com
On-behalf-of: @SAP christoph.mewes@sap.com
On-behalf-of: @SAP christoph.mewes@sap.com
@kcp-ci-bot kcp-ci-bot added kind/feature Categorizes issue or PR as related to a new feature. release-note-none Denotes a PR that doesn't merit a release note. dco-signoff: yes Indicates the PR's author has signed the DCO. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Apr 30, 2026
@xrstf xrstf requested a review from SimonTheLeg May 4, 2026 09:40
@kcp-ci-bot kcp-ci-bot added the lgtm Indicates that a PR is ready to be merged. label May 7, 2026
@kcp-ci-bot
Copy link
Copy Markdown
Contributor

LGTM label has been added.

DetailsGit tree hash: 8dc2ea77208903ce6bef5e71f38fc93d2d5498b9

Copy link
Copy Markdown
Member

@ntnn ntnn left a comment

Choose a reason for hiding this comment

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

/lgtm
/approve

@xrstf
Copy link
Copy Markdown
Contributor Author

xrstf commented May 18, 2026

/approve

@kcp-ci-bot
Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: ntnn, 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 May 18, 2026
@kcp-ci-bot kcp-ci-bot merged commit f669485 into kcp-dev:main May 18, 2026
11 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/feature Categorizes issue or PR as related to a new feature. lgtm Indicates that a PR is ready to be merged. release-note-none Denotes a PR that doesn't merit a release note. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feature: Allow for related resources to be cleaned up automatically after CR is deleted

3 participants