• Kubernetes Submit Queue's avatar
    Merge pull request #51748 from smarterclayton/events_inline · fc87bba2
    Kubernetes Submit Queue authored
    Automatic merge from submit-queue (batch tested with PRs 50602, 51561, 51703, 51748, 49142)
    
    Simplify describe events table
    
    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.
    
    @kubernetes/sig-cli-pr-reviews sorry for the last minute drop, but the usability of this is driving me up the wall and I can't take it anymore. Would like to slip this into 1.8 so that I can debug things without dying a little inside.
    
    Fixes #47715
    
    ```release-note
    The event table output under `kubectl describe` has been simplified to show only the most essential info.
    ```
    fc87bba2
Name
Last commit
Last update
..
internalversion Loading commit data...
storage Loading commit data...
.import-restrictions Loading commit data...
BUILD Loading commit data...
OWNERS Loading commit data...
common.go Loading commit data...
customcolumn.go Loading commit data...
customcolumn_test.go Loading commit data...
humanreadable.go Loading commit data...
interface.go Loading commit data...
json.go Loading commit data...
jsonpath.go Loading commit data...
name.go Loading commit data...
printers.go Loading commit data...
tabwriter.go Loading commit data...
template.go Loading commit data...
versioned.go Loading commit data...