Description of problem: Examples displayed as part of help for 'oc adm release [info | extract | mirror] command is incorrect. For example: $ oc adm release info --help Show information about an OpenShift release... ... Examples: # Show information about the cluster's current release %[1]s should be displayed as: $ oc adm release info --help Show information about an OpenShift release... ... Examples: # Show information about the cluster's current release oc adm release info Expected results: Additional info:
Confirmed with latest oc client, can't reproduce the issue now: [yinzhou@localhost test]$ oc version -o yaml clientVersion: buildDate: "2020-03-06T23:07:39Z" compiler: gc gitCommit: 8ce61268781d2074158d05ad11141792b94b1910 gitTreeState: clean gitVersion: 4.5.0-202003062301-8ce6126 goVersion: go1.13.4 major: "" minor: "" platform: linux/amd64 [yinzhou@localhost test]$ oc adm release info --help Show information about an OpenShift release ..... Examples: # Show information about the cluster's current release oc adm release info # Show the source code that comprises a release oc adm release info 4.2.2 --commit-urls [yinzhou@localhost test]$ oc adm release extract --help Extract the contents of a release image to disk .... Usage: oc adm release extract [flags] Examples: # Use git to check out the source code for the current cluster release to DIR oc adm release extract --git=DIR [yinzhou@localhost test]$ oc adm release mirror -h Mirror an OpenShift release image to another registry .... Usage: oc adm release mirror [flags] Examples: # Perform a dry run showing what would be mirrored, including the mirror objects oc adm release mirror 4.2.2 --to myregistry.local/openshift/release --dry-run
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2020:2409