It should require `--all` to do that, like delete does. User should never operate on "all resources" with explicit consent.
Origin PR: https://github.com/openshift/origin/pull/21313
Origin PR has merged
Checked with the latest 'openshift v3.11.36', the issue still exist, the PR still not merged with ocp3.11.x.
Confirmed with openshift v4.0.0-0.48.0, the issue has fixed。
[root@dhcp-140-138 roottest]# oc set image-lookup
error: resource(s) were provided, but no name, label selector, or --all flag specified
[root@dhcp-140-138 roottest]# oc version
features: Basic-Auth GSSAPI Kerberos SPNEGO
Could you help drop this bug from advisory RHBA-2018:37662-01, the bug only fixed with ocp 4.0.
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.