Bug 1995573 - oc adm certificate approve|deny help shows kubectl in the examples
Summary: oc adm certificate approve|deny help shows kubectl in the examples
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: oc
Version: 4.9
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: 4.9.0
Assignee: Maciej Szulik
QA Contact: zhou ying
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-08-19 12:40 UTC by Andrea Hoffer
Modified: 2021-10-18 17:47 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: No Doc Update
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-10-18 17:47:26 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github openshift oc pull 905 0 None None None 2021-08-19 13:44:48 UTC
Red Hat Product Errata RHSA-2021:3759 0 None None None 2021-10-18 17:47:38 UTC

Description Andrea Hoffer 2021-08-19 12:40:16 UTC
Examples for the certificate approve|deny commands were added to kubectl via https://github.com/kubernetes/kubernetes/pull/103524.

However, in the latest 4.9 oc, the examples still use kubectl instead of oc adm. 

Also, the long description references kubectl still as well, though I think this was a problem in previous releases as well.

----------------------------------------------------------------
[ahoffer@ahoffer ~] $ oc adm certificate deny --help
Deny a certificate signing request.

 kubectl certificate deny allows a cluster admin to deny a certificate signing request (CSR). This action tells a
certificate signing controller to not to issue a certificate to the requestor.

Usage:
  oc adm certificate deny (-f FILENAME | NAME) [flags]

Examples:
  # Deny CSR 'csr-sqgzp'
  kubectl certificate deny csr-sqgzp

[ahoffer@ahoffer ~] $ oc version
Client Version: 4.9.0-202108170012.p0.git.681248e.assembly.stream-681248e
----------------------------------------------------------------

Comment 2 zhou ying 2021-08-20 02:04:30 UTC
the issue has fixed: 

[root@localhost ~]# oc adm certificate deny --help
Deny a certificate signing request.

 oc adm certificate deny allows a cluster admin to deny a certificate signing request (CSR). This action tells a
certificate signing controller to not to issue a certificate to the requestor.

Usage:
  oc adm certificate deny (-f FILENAME | NAME) [flags]

Examples:
  # Deny CSR 'csr-sqgzp'
  oc adm certificate deny csr-sqgzp


[root@localhost ~]# oc version --client
Client Version: 4.9.0-202108192235.p0.git.5622598.assembly.stream-5622598

Comment 5 errata-xmlrpc 2021-10-18 17:47:26 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 (Moderate: OpenShift Container Platform 4.9.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-2021:3759


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