Hide Forgot
Description of problem: Check help info of command "oc version --help", the example command is using kubectl, which should use oc. Version-Release number of selected component (if applicable): openshift-clients-4.1.0-201905050051.git.0.db7b699.el7.x86_64 $ oc version --client Client Version: version.Info{Major:"4", Minor:"1+", GitVersion:"v4.1.0", GitCommit:"db7b699c3", GitTreeState:"clean", BuildDate:"2019-05-05T05:01:26Z", GoVersion:"go1.11.5", Compiler:"gc", Platform:"linux/amd64"} How reproducible: Always Steps to Reproduce: 1. oc version --help Actual results: $ oc version --help Print the client and server version information for the current context Usage: oc version [flags] Examples: # Print the client and server versions for the current context kubectl version ...... Expected results: We should use oc.
https://github.com/openshift/origin/pull/22790 should fix this.
Verified the issue has been fixed. $ rpm -qa | grep openshift-clients openshift-clients-4.1.0-201905121530.git.0.2d35f23.el7.x86_64 $ oc version --client Client Version: version.Info{Major:"4", Minor:"1+", GitVersion:"v4.1.0", GitCommit:"2d35f238a", GitTreeState:"clean", BuildDate:"2019-05-12T19:46:37Z", GoVersion:"go1.11.5", Compiler:"gc", Platform:"linux/amd64"} $ oc version --help Print the client and server version information for the current context Usage: oc version [flags] Examples: # Print the client and server versions for the current context oc version Options: --client=false: Client version only (no server required). -o, --output='': One of 'yaml' or 'json'. --short=false: Print just the version number. Use "oc options" for a list of global command-line options (applies to all commands).
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-2019:0758