Bug 2097334 - oc plugin help shows 'kubectl'
Summary: oc plugin help shows 'kubectl'
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: oc
Version: 4.11
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: 4.11.0
Assignee: Maciej Szulik
QA Contact: zhou ying
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-06-15 13:20 UTC by Andrea Hoffer
Modified: 2022-08-10 11:18 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-08-10 11:18:19 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github openshift oc pull 1173 0 None open Bug 2097334: ensure kubectl name is replaced in plugin cmd 2022-06-20 14:42:37 UTC
Red Hat Product Errata RHSA-2022:5069 0 None None None 2022-08-10 11:18:26 UTC

Description Andrea Hoffer 2022-06-15 13:20:28 UTC
Description of problem:
When auto-generated the oc CLI docs, noticed that the example pulled in said "kubectl plugin list". Usually there is some sort of transformation done where it should be replaced with "oc plugin list". This is also a problem in the actual "oc plugin list --help" output.


Version-Release number of selected component (if applicable):
4.11 (unsure if it goes any further back)


How reproducible:
Always


Steps to Reproduce:
1. Run 'oc plugin list --help'
2. Review output:

[ahoffer@ahoffer ~] $ oc plugin list --help
List all available plugin files on a user's PATH.

 Available plugin files are those that are: - executable - anywhere on the user's PATH - begin with "kubectl-"

Usage:
  oc plugin list [flags]

Examples:
  # List all available plugins
  kubectl plugin list

Options:
      --name-only=false: If true, display only the binary name of each plugin, rather than its full path

Use "oc options" for a list of global command-line options (applies to all commands).



Actual results:
The example says "kubectl plugin list"

Expected results:
Output should say "oc plugin list"


Additional info:

Comment 3 zhou ying 2022-06-22 02:19:46 UTC
the issue has fixed:

oc version --client
Client Version: 4.11.0-0.nightly-2022-06-22-015220
Kustomize Version: v4.5.4


oc plugin list -h
List all available plugin files on a user's PATH.

 Available plugin files are those that are: - executable - anywhere on the user's PATH - begin with "oc-"

Examples:
  # List all available plugins
  oc plugin list

Comment 5 errata-xmlrpc 2022-08-10 11:18:19 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 (Important: OpenShift Container Platform 4.11.0 bug fix and security update), 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/RHSA-2022:5069


Note You need to log in before you can comment on or make changes to this bug.