When I run oc get bc
, I got "no resource found". I have no problem to get results on other commands, e.g. oc get dc
, oc status
. The build process was kicked off by Jenkins.
What am I missing here?
When I run oc get bc
, I got "no resource found". I have no problem to get results on other commands, e.g. oc get dc
, oc status
. The build process was kicked off by Jenkins.
What am I missing here?
Make sure you are on the right project (project is OpenShift parlance for a Kubernetes namespace and the oc client uses it to set your current context namespace): oc project
will tell you which project you are currently on and oc projects
will list all of the projects you have access to on the cluster. Use oc project foo
to change project contexts for the oc client.