Unable to list devworkspaces: devworkspaces.workspace.devfile.io is forbidden: User cannot list resource "devworkspaces" in API group "workspace.devfile.io" in the namespace
See original GitHub issueSummary
my chectl version
i have installed eclipse-che
on k8s platform using below command
chectl server:deploy --che-operator-cr-patch-yaml=/Users/divine/Documents/office_tasks/TAP-4540/terraformCheJune17/eclipseche_yaml/che-operator-cr-patch.yaml --platform=k8s --installer=operator --debug --k8spoderrorrechecktimeout=1000000 --domain=eclipseche-dchelladurai-chejune15.calatrava.vmware.com --k8spodreadytimeout=1000000
i have integrated dex with github connector . i followed the steps mentioned here , to configure dex with github connector.
when i hit eclipse-che dashboard url, the webpage redirects to github login and after successful authentication flow in github, the webpage redirects back to eclipse-che dashboard url, but it fails to completely load the webpage due to error in below api’s.
https://eclipseche-dchelladurai-chejune15.calatrava.vmware.com/dashboard/api/namespace/divine-c-che-5j1hbg/devworkspacetemplates --403 - get request
https://eclipseche-dchelladurai-chejune15.calatrava.vmware.com/dashboard/api/namespace/divine-c-che-5j1hbg/devworkspaces --403 - get request
https://eclipseche-dchelladurai-chejune15.calatrava.vmware.com/dashboard/api/namespace/divine-c-che-5j1hbg/dockerconfig --403 - get request
below are the detailed information about the error
Failed to fetch available workspaces, reason: Failed to fetch the list of devWorkspaces. Unable to list devworkspaces: devworkspaces.workspace.devfile.io is forbidden: User "cdivine304@gmail.com" cannot list resource "devworkspaces" in API group "workspace.devfile.io" in the namespace "divine-c-che-5j1hbg"
i’m also receiving Unsupported OAuth provider github
error message from che
pod in eclipse-che
namespace
please help me to fix this error
Relevant information
No response
Issue Analytics
- State:
- Created a year ago
- Comments:11 (4 by maintainers)
Top GitHub Comments
I’m wondering why 1st way didn’t work. But good that it’s working for you now.
@sparkoo @tolusha Thank you responding with details
there were 2 suggestions mentioned in the above comments. i tested both of your suggestions. below is the feedback.
Suggestion1 (this didnot fix my issue)
i deleted my
eclipse-che
setup usingchectl server:delete
. then i updated by CheClusterCR file with below details.then i ran below command to deploy
eclipse-che
in k8s platformcommand completed successfully, but the issue was still replicated. my issue was not fixed.
may be i missed to do someother additional steps. any idea what was missed here?
Suggestion2 (this fixed my issue)
i deleted my
eclipse-che
setup usingchectl server:delete
. i editedkube-apiserver
and updated with below detailsthen i ran below command to deploy
eclipse-che
in k8s platformcommand completed successfully. My issue got fixed