Repository navigation
Closed
Description
Although formatted correctly, the output of oc get clusterPolicy is not very straightforward to read due to a large number of items in the ROLES column. The output prints out as follows on both large and small terminal windows:
Version
oc v1.3.0-rc1+476887d-1960-dirty
kubernetes v1.4.0+776c994
features: Basic-Auth
Server https://10.13.137.149:8443
openshift v1.3.0-rc1+c56afef-1864-dirty
kubernetes v1.4.0+776c994
Steps To Reproduce
oc get clusterPolicy
Current Result
See image above.
Although the printed result is hard to read, if the terminal window is sufficiently wide enough, the result displays as intended. Example:
NAME ROLES LAST MODIFIED
default admin, basic-user, cluster-admin, cluster-reader, cluster-status, edit, registry-admin, registry-editor, registry-viewer, self-access-reviewer, self-provisioner, sudoer, system:build-controller, system:build-strategy-custom, system:build-strategy-docker, system:build-strategy-jenkinspipeline, system:build-strategy-source, system:daemonset-controller, system:deployer, system:deployment-controller, system:deploymentconfig-controller, system:discovery, system:disruption-controller, system:endpoint-controller, system:gc-controller, system:hpa-controller, system:image-auditor, system:image-builder, system:image-pruner, system:image-puller, system:image-pusher, system:image-signer, system:job-controller, system:master, system:namespace-controller, system:node, system:node-admin, system:node-proxier, system:node-reader, system:oauth-token-deleter, system:pet-set-controller, system:pv-attach-detach-controller, system:pv-binder-controller, system:pv-provisioner-controller, system:pv-recycler-controller, system:registry, system:replicaset-controller, system:replication-controller, system:router, system:sdn-manager, system:sdn-reader, system:service-ingress-ip-controller, system:service-load-balancer-controller, system:service-serving-cert-controller, system:unidling-controller, system:webhook, view 2016-12-01 17:16:22 -0500 EST
Expected Result
Maybe have an enforced max-width on the printer that prevents column widths from getting too large.
@openshift/cli-review

Activity
[-]output from `oc get clustetPolicy` is hard to read[/-][+]output from `oc get clusterPolicy` is hard to read[/+]shiywang commentedon Dec 28, 2016
@juanvallejo @enj would you mind me taking this problem ? I create a pr #12354, thanks
Merge pull request #15021 from simo5/RBAC1