Bug 1707205

Summary: Example command in "oc version --help" is using kubeclt, rather than oc
Product: OpenShift Container Platform Reporter: Liang Xia <lxia>
Component: ocAssignee: Maciej Szulik <maszulik>
Status: CLOSED ERRATA QA Contact: Liang Xia <lxia>
Severity: low Docs Contact:
Priority: low    
Version: 4.1.0CC: aos-bugs, jokerman, mmccomas
Target Milestone: ---   
Target Release: 4.1.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-06-04 10:48:31 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Liang Xia 2019-05-07 03:29:29 UTC
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.

Comment 1 Maciej Szulik 2019-05-07 11:40:51 UTC
https://github.com/openshift/origin/pull/22790 should fix this.

Comment 2 Liang Xia 2019-05-14 02:25:59 UTC
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).

Comment 4 errata-xmlrpc 2019-06-04 10:48:31 UTC
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