You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When removing a deployment I'd like the related replicaset/pods to be removed as well (this is the cascading mode in kubectl).
I tried to call Deployments("ns").Delete with the OrphanDependents option set to true or false but it didn't seem to do anything.
How can I do the cascading delete with client-go?
The text was updated successfully, but these errors were encountered:
It's not supported yet. Currently cascading deletion is only supported for replicaset/replication controller (i.e., after you delete the rs or rc, the garbage collector controller will delete the pods). Cascading deletion of deployment will be supported after this PR gets merged: kubernetes/kubernetes#35676
When removing a deployment I'd like the related replicaset/pods to be removed as well (this is the cascading mode in kubectl).
I tried to call
Deployments("ns").Delete
with theOrphanDependents
option set totrue
orfalse
but it didn't seem to do anything.How can I do the cascading delete with client-go?
The text was updated successfully, but these errors were encountered: