-
Notifications
You must be signed in to change notification settings - Fork 242
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
3 changed files
with
35 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"version": { | ||
"crcVersion": "2.43.0", | ||
"gitSha": "f9b00f", | ||
"openshiftVersion": "@OPENSHIFT_VERSION@" | ||
}, | ||
"links": { | ||
"linux": "https://developers.redhat.com/content-gateway/file/pub/openshift-v4/clients/crc/2.43.0/crc-linux-amd64.tar.xz", | ||
"darwin": "https://developers.redhat.com/content-gateway/file/pub/openshift-v4/clients/crc/2.43.0/crc-macos-installer.pkg", | ||
"windows": "https://developers.redhat.com/content-gateway/file/pub/openshift-v4/clients/crc/2.43.0/crc-windows-installer.zip" | ||
} | ||
} |