Skip to content

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

@SimonTheLeg

Description

@SimonTheLeg

Feature Description

Currently related resources are not deleted if the CR is deleted. We did this intentionally to avoid any potential conflicts from deletions.

However it does make sense to offer this as additional functionality for use-cases, where users want to have the cleanup fully automated and are accepting the risk.

Proposed Solution

Proposed solution is to make this behavior configurable. Current behavior should still be the default (as it is less invasive), but if you want you can enable the automated cleanup.

I believe the best way would be to configure this on a PublishedResource Basis. So we could add a bool field relatedresourcecleanup which defaults to false. However if it is set to true, then the syncagent would delete any related resources once the original CR is deleted.

At this point in time I think there is no need to increase the granularity and define such a behavior on a per related resource basis.

Alternative Solutions

No response

Want to contribute?

  • I would like to work on this issue.

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/featureCategorizes issue or PR as related to a new feature.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions