Description of problem: When you execute the oc client with the "get" option and don't provide a resource the client correctly prints out all the resources that are available. It seem however to print out the resource "* replicationcontrollers (aka 'rc')" twice! Version-Release number of selected component (if applicable): 3.1 How reproducible: Always Steps to Reproduce: 1. oc get 2. 3. Actual results: You must specify the type of resource to get. Valid resource types include: * pods (aka 'po') * replicationcontrollers (aka 'rc') * daemonsets (aka 'ds') * services (aka 'svc') * deploymentconfigs (aka 'dc') * buildconfigs (aka 'bc') * builds * routes * replicationcontrollers (aka 'rc') * events (aka 'ev') * projects * secrets * imagestreams (aka 'is') * imagestreamtags (aka 'istag') * imagestreamimages (aka 'isimage') * persistentvolumes (aka 'pv') * persistentvolumeclaims (aka 'pvc') * policies * rolebindings * limitranges (aka 'limits') * resourcequotas (aka 'quota') * nodes (aka 'no') * namespaces (aka 'ns') * users * groups * componentstatuses (aka 'cs') * endpoints (aka 'ep') error: Required resource not specified. See 'oc get -h' for help and examples. Expected results: You must specify the type of resource to get. Valid resource types include: * pods (aka 'po') * replicationcontrollers (aka 'rc') * daemonsets (aka 'ds') * services (aka 'svc') * deploymentconfigs (aka 'dc') * buildconfigs (aka 'bc') * builds * routes * events (aka 'ev') * projects * secrets * imagestreams (aka 'is') * imagestreamtags (aka 'istag') * imagestreamimages (aka 'isimage') * persistentvolumes (aka 'pv') * persistentvolumeclaims (aka 'pvc') * policies * rolebindings * limitranges (aka 'limits') * resourcequotas (aka 'quota') * nodes (aka 'no') * namespaces (aka 'ns') * users * groups * componentstatuses (aka 'cs') * endpoints (aka 'ep') error: Required resource not specified. See 'oc get -h' for help and examples. Additional info:
Fixed in master. Resources are also now sorted.
Verified in oc v3.3.0.2. Unique and sorted. $ oc get You must specify the type of resource to get. Valid resource types include: * buildconfigs (aka 'bc') * builds * componentstatuses (aka 'cs') * configmaps * daemonsets (aka 'ds') * deploymentconfigs (aka 'dc') * deployments * events (aka 'ev') * endpoints (aka 'ep') * horizontalpodautoscalers (aka 'hpa') * imagestreamimages (aka 'isimage') * imagestreams (aka 'is') * imagestreamtags (aka 'istag') * ingress (aka 'ing') * groups * jobs * limitranges (aka 'limits') * nodes (aka 'no') * namespaces (aka 'ns') * pods (aka 'po') * persistentvolumes (aka 'pv') * persistentvolumeclaims (aka 'pvc') * policies * projects * quota * resourcequotas (aka 'quota') * replicasets (aka 'rs') * replicationcontrollers (aka 'rc') * rolebindings * routes * secrets * serviceaccounts (aka 'sa') * services (aka 'svc') * users error: Required resource not specified. See 'oc get -h' for help and examples.
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-2016:1933