Skip to content

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

Open
xrstf wants to merge 5 commits intokcp-dev:mainfrom
xrstf:extend-deletion-behaviour
Open

Allow to delete related object copies when the primary object is deleted#164
xrstf wants to merge 5 commits intokcp-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. labels Apr 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 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
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/feature Categorizes issue or PR as related to a new feature. 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

2 participants