-
Task
-
Resolution: Done
-
Blocker
-
1.1.0.GA
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.