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

kubeconfig: remove default namespace from crc-developer context #4420

Merged
merged 1 commit into from
Nov 4, 2024

Commits on Nov 4, 2024

  1. kubeconfig: remove default namespace from crc-developer context

    the 'developer' user don't have the required role-bindings to access
    the 'default' namespace and when user tries to access it we get:
    
    ```
    Error from server (Forbidden): pods is forbidden: User "developer" cannot list resource "pods" in API group "" in the namespace "default"
    ```
    with the changes in this commit, we get a better error message:
    
    ```
    $ oc config get-contexts
    CURRENT   NAME            CLUSTER                AUTHINFO                         NAMESPACE
              crc-admin       api-crc-testing:6443   kubeadmin/api-crc-testing:6443   default
    *         crc-developer   api-crc-testing:6443   developer/api-crc-testing:6443
    
    $ oc project
    No project has been set. Pass a project name to make that the default.
    
    $ oc project demo
    error: You are not a member of project "demo".
    You are not a member of any projects. You can request a project to be created with the 'new-project' command.
    ```
    
    fixes crc-org/snc#703
    anjannath committed Nov 4, 2024
    Configuration menu
    Copy the full SHA
    aaf0e2e View commit details
    Browse the repository at this point in the history