-
Notifications
You must be signed in to change notification settings - Fork 243
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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
- Loading branch information
Showing
2 changed files
with
23 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters