OCP installation/upgrade fails with - server doesn't have a resource type "dc"
Issue
Upgrading Openshift Container Plataform from v3.7 to v3.9 or between minor versions on v3.9 fails with the message server doesn't have a resource type "dc".
Running the command manually on the clusters works:
# oc get dc -n default
Environment
Openshift Container Plataform 3.7 and 3.9
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
