openshift-docs icon indicating copy to clipboard operation
openshift-docs copied to clipboard

OCPBUGS43810: Add prereq to install python-yq

Open mburke5678 opened this issue 1 year ago • 5 comments

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.

https://issues.redhat.com/browse/OCPBUGS-43810

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

Preview: Viewing and interacting with certificates - New prereq, updated code blocks for steps 1a and 1b.

  • [x] QE has approved this change.

mburke5678 avatar Oct 24 '24 19:10 mburke5678

🤖 Fri Oct 25 20:54:33 - Prow CI generated the docs preview:

https://84112--ocpdocs-pr.netlify.app/openshift-enterprise/latest/machine_configuration/index.html

ocpdocs-previewbot avatar Oct 24 '24 19:10 ocpdocs-previewbot

@rioliu-rh PTAL

mburke5678 avatar Oct 25 '24 14:10 mburke5678

/lgtm

rioliu-rh avatar Oct 25 '24 14:10 rioliu-rh

New changes are detected. LGTM label has been removed.

openshift-ci[bot] avatar Oct 25 '24 15:10 openshift-ci[bot]

@mburke5678: all tests passed!

Full PR test history. Your PR dashboard.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here.

openshift-ci[bot] avatar Oct 25 '24 20:10 openshift-ci[bot]

/cherrypick enterprise-4.14

mburke5678 avatar Oct 28 '24 12:10 mburke5678

/cherrypick enterprise-4.15

mburke5678 avatar Oct 28 '24 12:10 mburke5678

/cherrypick enterprise-4.16

mburke5678 avatar Oct 28 '24 12:10 mburke5678

/cherrypick enterprise-4.17

mburke5678 avatar Oct 28 '24 12:10 mburke5678

/cherrypick enterprise-4.18

mburke5678 avatar Oct 28 '24 12:10 mburke5678

@mburke5678: new pull request created: #84152

In response to this:

/cherrypick enterprise-4.14

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

@mburke5678: new pull request created: #84153

In response to this:

/cherrypick enterprise-4.15

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

@mburke5678: new pull request created: #84154

In response to this:

/cherrypick enterprise-4.16

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

@mburke5678: new pull request created: #84155

In response to this:

/cherrypick enterprise-4.17

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

@mburke5678: new pull request created: #84156

In response to this:

/cherrypick enterprise-4.18

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.