kubernetes/pkg/printers/internalversion
Kubernetes Submit Queue fc87bba2dd Merge pull request #51748 from smarterclayton/events_inline
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.
```
2017-09-03 01:12:12 -07:00
..
.import-restrictions Restrict imports for printers 2017-02-23 00:28:31 -05:00
BUILD Revert "Enable batch/v1beta1.CronJobs by default" 2017-08-31 09:54:16 -07:00
describe.go Merge pull request #51748 from smarterclayton/events_inline 2017-09-03 01:12:12 -07:00
describe_test.go Simplify describe events table 2017-08-31 19:11:01 -04:00
printers.go Revert "Enable batch/v1beta1.CronJobs by default" 2017-08-31 09:54:16 -07:00
printers_test.go Merge pull request #50953 from zjj2wry/get-pvc 2017-08-26 23:02:53 -07:00
sorted_resource_name_list_test.go Refactor printers to separate typed printers from generic code 2017-02-23 00:28:30 -05:00