[jbosstools-issues] [JBoss JIRA] (JBIDE-22241) OpenShift Explorer: Cascade resource deletion
Jeff MAURY (JIRA)
issues at jboss.org
Thu Jun 2 11:50:00 EDT 2016
[ https://issues.jboss.org/browse/JBIDE-22241?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13247145#comment-13247145 ]
Jeff MAURY commented on JBIDE-22241:
------------------------------------
Here is my reverse engineering from the OC client.
||Resource type||Delete processing||
|ReplicationController|check other compatible ReplicationControllers (selector is compatible with own selector), if compatible ReplicationControllers selector have the same number of elements then they are considered as exact match otherwise as overlapping. If there are overlapping cascaded delete is refused, otherwise if there is a single exact match ReplicationController, it is scaled down to 0 and then deleted. Code logic is available here: https://github.com/kubernetes/kubernetes/blob/master/pkg/kubectl/stop.go#L191|
|DeploymentConfig|delete linked ReplicationControllers using labelSelector *openshift.io/deployment-config.name=dcName*. Code logic is available here: https://github.com/openshift/origin/blob/master/pkg/deploy/reaper/reaper.go#L31|
|Route|simple delete|
|Service|simple delete|
|BuildConfig|first set the annotation *openshift.io/build-config.paused* to *true* then delete linked Builds using labelSelector *openshift.io/build-config.name=bcName* then delete linked Builds using labelSelector *buildconfig=bcName* then delete the BuildConfig is no error in previous steps. Code logic is available here: https://github.com/openshift/origin/blob/master/pkg/build/reaper/reaper.go#L31|
|Build|simple delete|
|ImageStream|simple delete|
|Pod|simple delete|
|Project|simple delete|
> OpenShift Explorer: Cascade resource deletion
> ---------------------------------------------
>
> Key: JBIDE-22241
> URL: https://issues.jboss.org/browse/JBIDE-22241
> Project: Tools (JBoss Tools)
> Issue Type: Enhancement
> Components: openshift
> Affects Versions: 4.4.0.Alpha1
> Reporter: Marián Labuda
> Assignee: Jeff MAURY
> Labels: explorer, openshift_v3, ux
> Fix For: 4.4.0.Final
>
>
> It would be nice to have a possibility to allow cascading deletion, deletion of related resource/resource managed by the resource which is about to be deleted.
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
More information about the jbosstools-issues
mailing list