Skip to content

output from oc get clusterPolicy is hard to read #12303

Closed

Description

@juanvallejo

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:

ocgetclusterpolicy

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
  1. 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

  1. assigned and unassigned on Dec 22, 2016
  2. changed the title [-]output from `oc get clustetPolicy` is hard to read[/-] [+]output from `oc get clusterPolicy` is hard to read[/+] on Dec 27, 2016
  3. shiywang commented on Dec 28, 2016

    @shiywang

    @juanvallejo @enj would you mind me taking this problem ? I create a pr #12354, thanks

  4. added a commit that references this issue on Aug 17, 2017
    edf3ff5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions