Skip to content

BlockOwnerDeletion does not block owner deletion #86509

@justinsb

Description

@justinsb

I created a CR "parent" that creates a CR "child". The "child" CR has two ownerrefs: "parent" and "uncle" (another CR). The "parent" ownerRef blockOwnerDeletion is true; the "uncle" ownerRef blockOwnerDeletion is unset.

When I delete "parent", "child" is not deleted. We do not seem to honor blockOwnerDeletion on "child" being deleted, though we do remove the ownerRef. If I first remove the "uncle" ownerRef, "child" is deleted when I delete "parent".

Is this expected behaviour? It seems contrary to all docs I have found (and the field name!)

I would expect: that either child would be deleted, or that the parent deletion would hang (if the second ownerRef was considered blocking) until "child" has been deleted.

Metadata

Metadata

Assignees

Labels

kind/bugCategorizes issue or PR as related to a bug.sig/api-machineryCategorizes an issue or PR as relevant to SIG API Machinery.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions