oc commands that use JSONPath formatting fail on Windows terminals

Solution Verified - Updated -

Issue

When running oc commands that use JSONPath templates to process and format the output on Windows terminals, the command fails with the message:

error: a resource cannot be retrieved by name across all namespaces

The same command works as expected on a Linux terminal

Environment

OpenShift Container Platform 4.x
Microsoft Windows 10

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