Cascading deletion does not work according to the ownerReference dependents of the objects

Solution Verified - Updated -

Issue

  • If you delete an object depend on other object through ownerReference, the dependent are not deleted automatically.

  • For instance, if you delete a Deployment object, but ReplicaSet which depends on the Deployment would not be removed automatically.

  • You can see the following messages in the master controller manager pod logs.

timed out waiting for dependency graph builder sync during GC sync (attempt xxxxx)

Environment

  • Red Hat OpenShift Container Platform

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content