-
Bug
-
Resolution: Done
-
Undefined
-
None
-
4.14, 4.15, 4.16, 4.17, 4.18
-
None
-
None
-
1
-
OSDOCS Sprint 261
-
1
-
False
-
Description of problem:
In reviewing a different issue, I noticed that the yq command doesn't take a -y flag. You are required to install the python-yq package rather than vanilla yq.Also, updated the output of steps 1a and 1b to match the output I observed. (Currently, 1a seems to have json-formatted output, rather than yaml-based.Added an optional prerequisite to install python-jq.
Before:
$ oc get controllerconfig/machine-config-controller -o yaml | yq -y '.status.controllerCertificates' Error: unknown shorthand flag: 'y' in -y
After:
$ oc get controllerconfig/machine-config-controller -o yaml | yq -y '.status.controllerCertificates'
- bundleFile: KubeAPIServerServingCAData notAfter: '2034-10-23T13:13:02Z' notBefore: '2024-10-25T13:13:02Z' signer: CN=admin-kubeconfig-signer,OU=openshift subject: CN=admin-kubeconfig-signer,OU=openshift - bundleFile: KubeAPIServerServingCAData
Version-Release number of selected component (if applicable):
How reproducible:
Steps to Reproduce:
1. 2. 3.
Actual results:
$ oc get controllerconfig/machine-config-controller -o yaml | yq -y '.status.controllerCertificates' Error: unknown shorthand flag: 'y' in -y
Expected results:
$ oc get controllerconfig/machine-config-controller -o yaml | yq -y '.status.controllerCertificates' - bundleFile: KubeAPIServerServingCAData notAfter: '2034-10-23T13:13:02Z' notBefore: '2024-10-25T13:13:02Z' signer: CN=admin-kubeconfig-signer,OU=openshift subject: CN=admin-kubeconfig-signer,OU=openshift - bundleFile: KubeAPIServerServingCAData # ...
Additional info: