• Clayton Coleman's avatar
    Simplify describe events table · 824f04f8
    Clayton Coleman authored
    The describe table for events is not easy to read and violates other
    output guidelines. Change to use spaces (we don't use tabs in formal
    output for tables). Remove columns that are not normally needed or
    available on events.
    
    Example for pods:
    
    ```
    ...
    QoS Class:       BestEffort
    Node-Selectors:  role=app
    Tolerations:     <none>
    Events:
      Type     Reason      Age                 From                         Message
      ----     ------      ----                ----                         -------
      Normal   Pulling     1h (x51 over 5h)    kubelet, origin-ci-ig-n-gj0x pulling image "registry.svc.ci.openshift.org/experiment/commenter:latest"
      Normal   BackOff     8m (x1274 over 5h)  kubelet, origin-ci-ig-n-gj0x Back-off pulling image "registry.svc.ci.openshift.org/experiment/commenter:latest"
      Warning  FailedSync  3m (x1359 over 5h)  kubelet, origin-ci-ig-n-gj0x Error syncing pod
    ```
    
    Puts the type first (separate important from not), then reason (which is
    the most impactful scanning field). Collapses first seen, last seen, and
    times into a single field, since most of the time you care about the
    last time the event happened, not the first time.
    824f04f8
To find the state of this project's repository at the time of any of these versions, check out the tags.
history.go 11.3 KB