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

Don't fail installation just because user is without cluster-admin role

    XMLWordPrintable

Details

    Description

      Operator installer fails instantly in case user is without cluster-admin role:

      14:10:22 [INFO]: Welcome to CodeReady Workspaces Installer 
      14:10:22 [INFO]: Found oc client in PATH 
      14:10:22 [INFO]: Checking if you are currently logged in... 
      14:10:22 [INFO]: Active session found. Your current context is: codeready-e2e-crw-https-newest/api-engint-openshift-com:443/dnochevn@redhat.com 
      14:10:23 [ERROR]: Creation of a CRD requires cluster-admin privileges. Login in as user with cluster-admin role 
      

      At the same time OSD users aren't usually with cluster-admin rights, beside they could ask support team to configure OSD additionally (to add CRD, openshift oauth client) to enable installation of CRW.

      Solution: don't fail installation of CRW instantly - print warning in output, and fail if required CRD, or OpenShift oAuth client are absent.

      Attachments

        Activity

          People

            yivantso Eugene Ivantsov (Inactive)
            dnochevn Dmytro Nochevnov
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: