-
Bug
-
Resolution: Unresolved
-
Undefined
-
None
-
4.13, 4.12, 4.14, 4.15, 4.16, 4.17, 4.18, 4.19, 4.20
-
None
-
None
-
False
-
-
None
-
Moderate
-
None
-
None
-
None
-
None
-
None
-
None
-
Bug Fix
-
No Doc Update
-
None
-
None
-
None
-
None
Description of problem:
In the chapter "3.2.1. Add an API server named certificate", the step 4. Update the API server to reference the created secret includes }} line breaker into the json code, which is actually into single quotes {{', if a customer copy it and replace the desired values, the command will failed with the error message
Error from server (BadRequest): error decoding patch: invalid character '\\' looking for beginning of value
Version-Release number of selected component (if applicable):
All active documentations versions are impacted
How reproducible:
Every time try it
Steps to Reproduce:
1. Copy the command from the documentation
2. Replace the desired FQDN and secret and run the command
Actual results:
Error message:
Error from server (BadRequest): error decoding patch: invalid character '\\' looking for beginning of value
Expected results:
Patch command should run without error.
Additional info:
The right format is either:
oc patch apiserver cluster \
--type=merge -p \
'{"spec":{"servingCerts": {"namedCertificates":
[{"names": ["<FQDN>"],
"servingCertificate": {"name": "<secret>"}}]}}}'
Or on a single line:
oc patch apiserver cluster --type=merge -p '{"spec":{"servingCerts": {"namedCertificates": [{"names": ["<FQDN>"], "servingCertificate": {"name": "<secret>"}}]}}}'