Dashboard: delete in dashboard does not cascade

Created on 30 Jun 2016  路  14Comments  路  Source: kubernetes/dashboard

Issue details

When deleting a deployment/rc/rs in dashboard the delete does not cascade like it does with kubectl delete. I'd say the cascading should be the expected behavior as it is also the default with kubectl.

Environment
Dashboard version: 1.1.0
Kubernetes version: 1.2.5
Operating system:
Node.js version:
Go version:
Steps to reproduce
  1. Delete any deployment, rc, or rs
    Observed result

The delete does not cascade to resources managed by the deleted resource.

Expected result

Cascading delete like with kubectl delete (default behavior), i.e. deployment->rs->pods; rs->pods; rc->pods

Comments
kinbug

All 14 comments

I've encountered same issue lately. We have to rethink our generic approach to delete, because it leaves orphaned resources on the cluster.

cc @bryk

I definitely agree. We need to wait until this is implemented on the server side: https://github.com/kubernetes/kubernetes/issues/19054

Otherwise, it is us duplicating kubectl and apiserver work.

Thoughts?

Nice. Didn't know about that. We should definitely wait for kubernetes to get this feature.

Same here, looks like we should wait then, also good discussion about what the default should be. For me the default for UI should be same as for kubectl to have a coherent UX across CLI and UI.

For me the default for UI should be same as for kubectl to have a coherent UX across CLI and UI.

That's our goal :)

cc @caesarxuchao

In the upcoming 1.4 release, server-side cascading deletion of rc and rs is possible, dashboard just needs to send to apiserver a deletion request with DeleteOptions.OrphanDependents=false.

We will work on the other use cases in 1.5.

Great! We should support this.

cc @bryk @maciaszczykm

@caesarxuchao Cool, thanks.

Will we get cascade delete for free for future use cases when we just send DeleteOptions.OrphanDependents=false with all delete requests?

@bryk what are the future use cases you have in mind? We will support cascading deletion for Deployment in the future.

Can't test right now, but Jobs would be good.

On a sidenote: Does deletion of namespaces (I'd guess that always incl all their resources) work in Dashboard?

@puja108 We dont (yet) support deletion/modification of cluster admin resources. It is challenging, as you already noticed, so we want to tackle this only when we have time to do this right.

@caesarxuchao

what are the future use cases you have in mind? We will support cascading deletion for Deployment in the future.

Yes, cases like cascade delete for Deployments or Namespaces.

Will track it from #1570.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

maciaszczykm picture maciaszczykm  路  4Comments

Eddman picture Eddman  路  4Comments

puja108 picture puja108  路  5Comments

wu105 picture wu105  路  3Comments

maciaszczykm picture maciaszczykm  路  3Comments