Bug 1774424

Summary: Need update help doc for 'oc set image-lookup'
Product: OpenShift Container Platform Reporter: XiuJuan Wang <xiuwang>
Component: ocAssignee: Maciej Szulik <maszulik>
Status: CLOSED ERRATA QA Contact: zhou ying <yinzhou>
Severity: medium Docs Contact:
Priority: medium    
Version: 4.3.0CC: aos-bugs, jokerman, maszulik, mfojtik
Target Milestone: ---   
Target Release: 4.4.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-05-04 11:16:09 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:
Embargoed:

Description XiuJuan Wang 2019-11-20 09:51:15 UTC
Description of problem:
This example in image-lookup cmd help doc doesn't work, it should be 'oc set image-lookup imagestream --list'
Examples:
  # Print all of the image streams and whether they resolve local names
  oc set image-lookup


Version-Release number of selected component (if applicable):

Client Version: v4.3.0
Server Version: 4.3.0-0.nightly-2019-11-19-122017
Kubernetes Version: v1.16.2

How reproducible:
always 

Steps to Reproduce:
1.The cmd in help doc doesn't work
$oc set image-lookup
error: resource(s) were provided, but no name, label selector, or --all flag specified
The cmd should be
$oc set image-lookup imagestream --list 
NAME   LOCAL
mysql  true
nginx  true

2.
3.

Actual results:

Expected results:

The cmd to 'Print all of the image streams and whether they resolve local names' should be:
oc set image-lookup imagestream --list

Additional info:

Comment 3 zhou ying 2020-01-14 08:58:00 UTC
Confirmed with latest oc client, the issue has fixed:
[root@dhcp-140-138 ~]# rpm -q openshift-clients
openshift-clients-4.4.0-202001111916.git.1.f12ee11.el7.x86_64


[root@dhcp-140-138 ~]# oc set image-lookup
NAME  LOCAL
[root@dhcp-140-138 ~]# oc set image-lookup imagestream --list
NAME  LOCAL

Comment 5 errata-xmlrpc 2020-05-04 11:16:09 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-2020:0581