The oc patch command fails with: yaml: found unexpected end of stream
Issue
- The
oc patch
command fails with the following error:
C:\Users\user1\Downloads\openshift-client-windows>oc patch apiserver cluster --type=merge -p '{"spec":{"servingCerts": {"namedCertificates": [{"names": ["<api fqdn>"],"servingCertificate": {"name": "<secret name>"}}]}}}'
error: unable to parse "'{spec:{servingCerts:": yaml: found unexpected end of stream
Environment
- Windows system - Windows prompt
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.