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

Solution Unverified - 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.
shared_informer.go:243] unable to sync caches for garbage collector
garbagecollector.go:228] timed out waiting for dependency graph builder sync during GC sync (attempt xxxxx)

Environment

  • OpenShift Container Platform
    • 4.6

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