Uploaded image for project: 'Red Hat OpenShift Dev Spaces (formerly CodeReady Workspaces) '
  1. Red Hat OpenShift Dev Spaces (formerly CodeReady Workspaces)
  2. CRW-467

"crwctl server:delete" command removes checluster from all CRW-projects on OCP

    XMLWordPrintable

Details

    • Workaround Exists
    • Hide

      Instead of using server:delete, user can do this:

      for OPENSHIFT_PROJECT in myworkspaces myotherworkspaces; do
      oc delete checluster codeready -n ${OPENSHIFT_PROJECT}; \
      oc delete project ${OPENSHIFT_PROJECT} &
      done
      
      Show
      Instead of using server:delete , user can do this: for OPENSHIFT_PROJECT in myworkspaces myotherworkspaces; do oc delete checluster codeready -n ${OPENSHIFT_PROJECT}; \ oc delete project ${OPENSHIFT_PROJECT} & done

    Description

      There is Delete CRD operation in crwctl which leads to removal of all checlusters in all CRW-projects deployed to the same OCP after

      crwctl server:delete

      command execution:

       Verify Kubernetes API
          Delete the CR eclipse-che of type checlusters.org.eclipse.che
          Delete CRD checlusters.org.eclipse.che
          Delete role che-operator
          Delete cluster role binding che-operator
          Delete cluster role che-operator
          Delete rolebinding che-operator
          Delete service accounts che-operator
          Delete PVC che-operator
          Delete all deployments
          Delete all services
          Delete all ingresses                                                          
        ✔ Verify Kubernetes API...OK (it's OpenShift)
        ✔ Delete the CR eclipse-che of type checlusters.org.eclipse.che...OK
        ✔ Delete CRD checlusters.org.eclipse.che...OK
        ✔ Delete role che-operator...OK
        ✔ Delete cluster role binding che-operator...OK
        ✔ Delete cluster role che-operator...OK
        ✔ Delete rolebinding che-operator...OK
        ✔ Delete service accounts che-operator...OK
        ✔ Delete PVC che-operator...OK
        ✔ Delete all deployments...OK
        ✔ Delete all services...OK
        ✔ Delete all routes...OK
        ✔ Delete configmaps che and che-operator...OK
        ✔ Delete rolebindings che, che-workspace-exec and che-workspace-view...OK
        ✔ Delete service accounts che, che-workspace...OK
        ✔ Delete PVC postgres-data and che-data-volume...OK
        ✔ Remove Che minishift addon...OK
      

      Expected behavior https://github.com/redhat-developer/codeready-workspaces-chectl/blob/master/README.md#chectl-serverdelete:
      it had to delete checluster from che project only.

      Attachments

        Issue Links

          Activity

            People

              abazko Anatolii Bazko
              dnochevn Dmytro Nochevnov
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: