OpenShift jsonpath fails in Windows PowerShell due to error parsing template
Issue
oc
commands with jsonpath specified fail in Windows PowerShell but run fine in Bash:
C:\> oc get pod -o go-template='{{range .items}}{{.metadata.name}}{{"\/n"}}{{end}}'
error: error parsing template {{range .items}}{{.metadata.name}}{{\/n}}{{end}}, template: output:1: unexpected "\\" in command
Environment
- Red Hat OpenShift Container Platform
- 3.x
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.