Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'developer' user doesn't have access to 'default' namespace #703

Open
anjannath opened this issue Apr 27, 2023 · 2 comments
Open

'developer' user doesn't have access to 'default' namespace #703

anjannath opened this issue Apr 27, 2023 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@anjannath
Copy link
Member

it seems the developer user doesn't have sufficient permissions to list/access/modify resources in the default namespace, but is should be able to do it since we also add a kube context crc-developer that has the namespace set to default

❯ oc whoami
developer

❯ oc project
error: you do not have rights to view project "default" specified in your config or the project doesn't exist

❯ oc config get-contexts
CURRENT   NAME            CLUSTER                AUTHINFO    NAMESPACE
          crc-admin       api-crc-testing:6443   kubeadmin   default
*         crc-developer   api-crc-testing:6443   developer   default
@anjannath anjannath changed the title 'developer' user doesn't has access to 'default' namespace 'developer' user doesn't have access to 'default' namespace Apr 27, 2023
@anjannath anjannath added the bug Something isn't working label Aug 1, 2023
@Apetree100122
Copy link

Apetree100122 commented Sep 29, 2024

❯ oc  whoami developer 
❯ oc project
error: you    do not have rights
 to view project "default"    specified in your    
config or the project    doesn't exist 
❯ oc  config    get-contexts  
||   
|--CURRENT   NAME              "crc-admin"  |   "crc-developer "|
|| --- CLUSTER          "api-crc-testing:6443"   |   " api-crc-testing:6443 " |
| -- AUTHINFO                        "kubeadmin"    |    " developer"  |
|--|  NAMESPACE                           " default "     |     " default "  |
||

@Apetree100122
Copy link

you need to not be default as if you do your dev will not have access

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants