JSON patch fails while providing admin-ack due to old oc binary

Solution Verified - Updated -

Issue

  • I am unable to patch the config map for providing admin-ack.
  • The patch command fails with error "Error from server: Invalid JSON Patch".
$ oc -n openshift-config patch cm admin-acks --patch '{"data":{"ack-4.8-kube-1.22-api-removals-in-4.9":"true"}}' --type=merge
> "Error from server: Invalid JSON Patch"

Environment

  • Red Hat OpenShift Container Platform (RHOCP)
    • 4.8
    • 4.9

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