oc command errors in MicroShift
Not all OpenShift CLI (oc) commands are relevant for MicroShift deployments. When you use oc to make a request call against an unsupported API, the oc binary usually generates an error message about a resource that cannot be found.
-
For example, when you run the following
new-projectcommand:$ oc new-project testThe following error message can be generated:
Error from server (NotFound): the server could not find the requested resource (get projectrequests.project.openshift.io) -
When you run the
get projectscommand, another error can be generated as follows:$ oc get projectsThe following error message can be generated:
error: the server doesn't have a resource type "projects"