[OCP4] `oc` client slow when using long ressource names

Solution Unverified - Updated -

Issue

  • oc get packagemanifests -A takes about 300ms, oc get packagemanifests.packages.operators.coreos.com -A takes more than 6 seconds.
  • oc get <short_resource> is faster than oc get <resource_with_apiversion>

Environment

  • Red Hat OpenShift Container Platform 4.6
  • Red Hat OpenShift Container Platform 4.7
  • High latency connection to an OpenShift cluster

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content