How to use a specific api version of an OpenShift resource

Solution Verified - Updated -

Issue

  • The default api version for a resource don't have the required parameter, but the cluster supports a different version with the required parameter.
  • Using oc get -o yaml to view a resource, the api version shown is different that the version used to create the resource.
  • Using oc edit to edit a resource, the api version shown is not the desired api version.

Environment

  • Red Hat OpenShift Container Platform
    • 4.x

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