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

crwctl workspace commands don't work when using OS OAuth

XMLWordPrintable

      Use case:

      1. Install CRW with OS OAuth support
      2. Login into CRW as admin user
      3. Create and start workspace
      4. "oc login" as admin user
      5. Execute "crwctl workspace:inject" command

      Expected result:

      [ndp@localhost tmp]$ crwctl/bin/crwctl workspace:inject -n crw-using-crwctl-tls-oauth -k
        ✔ Verify if namespace crw-using-crwctl-no-tls-with-oauth exists
        ✔ Verify if the workspaces is running
        ✔ Injecting configurations
      

      Actual wrong result:

      [ndp@localhost tmp]$ crwctl/bin/crwctl workspace:inject -n crw-using-crwctl-tls-oauth -k
        ✔ Verify if namespace crw-using-crwctl-tls-oauth exists
        ✖ Verify if the workspaces is running
          → No workspace pod is found
          Injecting configurations
       ›   Error: No workspace pod is found
      
      [ndp@localhost tmp]$ crwctl/bin/crwctl workspace:inject -n crw-using-crwctl-tls-oauth -k -w java-eap-maven-h8goy
        ✔ Verify if namespace crw-using-crwctl-tls-oauth exists
        ✖ Verify if the workspaces is running
          → No workspace pod is found
          Injecting configurations
       ›   Error: No workspace pod is found
      

      Root cause:
      workspace pod is placed into separate namespace <username>-codeready

      References:
      "crwctl workspace:inject" command documentation.

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

              Created:
              Updated:
              Resolved: