Uploaded image for project: 'OpenShift Bugs'
  1. OpenShift Bugs
  2. OCPBUGS-43810

Add prereq to install python-yq

XMLWordPrintable

    • None
    • 1
    • OSDOCS Sprint 261
    • 1
    • False
    • Hide

      None

      Show
      None

      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:

          

              mburke@redhat.com Michael Burke
              mburke@redhat.com Michael Burke
              Rio Liu Rio Liu
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: