Bug 1774424 - Need update help doc for 'oc set image-lookup'
Summary: Need update help doc for 'oc set image-lookup'
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: oc
Version: 4.3.0
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: 4.4.0
Assignee: Maciej Szulik
QA Contact: zhou ying
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-11-20 09:51 UTC by XiuJuan Wang
Modified: 2020-05-04 11:16 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: No Doc Update
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-05-04 11:16:09 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github openshift oc pull 231 0 None closed Bug 1774424: set builder flags so it prints resources when nothing is specified 2020-10-09 01:43:18 UTC
Red Hat Product Errata RHBA-2020:0581 0 None None None 2020-05-04 11:16:42 UTC

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


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