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:
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
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