Skip to content

[BUG] Unintuitive behavior of delete-policy: orphan-on-apply #468

Description

@cbarbian-sap

Describe the bug

Objects having been orphaned due to an effective deletion policy OrphanOnApply are not deleted when the owning component itself is deleted.

This is probably logical in the intrinsic logic of the framework (because, being already orphaned, they are no longer dependents of the component, so they are not considered during the component deletion).

Tested with Version
v0.3.156

Expected behavior

But most users probably expect something different to happen: that those objects then finally are removed along with the component.

Additional context

We should improve this. Either by semantically changing the semantics of OrphanOnApply , or by introducing a another deletion policy, such as OrphanOnApplyAndDeleteDuringDeletion. Note that in any case we would have to keep the inventory record of every object which was orphaned during an apply. Which might blow up the inventory significantly.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Fields

No fields configured for Bug.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions