"oc get all" command to display titles on headers for different sections

Solution In Progress - Updated -

Issue

  • Requesting formatting of oc get all to add titles to headers.

Current Output looks something like this:

NAME             LABELS                         SELECTOR     ....           
docker-registry   docker-registry=default  docker-registry=default   ....   
kubernetes        component=apiserver,provider=kubernetes   <none>    ....
kubernetes-ro     component=apiserver,provider=kubernetes   <none>   ....   
outer2            router=router2            router=router2       ........
NAME                            READY     REASON    RESTARTS   AGE  
docker-registry-1-2dy3k         1/1       Running   0          6m  
router2-1-25wwx                 1/1       Running   0          1d

Suggested output:

Services
NAME             LABELS                         SELECTOR     ....           
docker-registry   docker-registry=default  docker-registry=default   ....   
kubernetes        component=apiserver,provider=kubernetes   <none>    ....
kubernetes-ro     component=apiserver,provider=kubernetes   <none>   ....   

Pods 
NAME                            READY     REASON    RESTARTS   AGE  
docker-registry-1-2dy3k         1/1       Running   0          6m  
router2-1-25wwx                 1/1       Running   0          1d

Environment

Openshift Enterprise 3.0

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.