-
Notifications
You must be signed in to change notification settings - Fork 41.3k
Closed
Labels
kind/bugCategorizes issue or PR as related to a bug.Categorizes issue or PR as related to a bug.sig/api-machineryCategorizes an issue or PR as relevant to SIG API Machinery.Categorizes an issue or PR as relevant to SIG API Machinery.
Description
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.
LouisPlissoDiveInto, LouisPlisso and soharaki
Metadata
Metadata
Assignees
Labels
kind/bugCategorizes issue or PR as related to a bug.Categorizes issue or PR as related to a bug.sig/api-machineryCategorizes an issue or PR as relevant to SIG API Machinery.Categorizes an issue or PR as relevant to SIG API Machinery.