k3s/pkg/printers
Kubernetes Submit Queue ec37c0f643
Merge pull request #65391 from smarterclayton/describe
Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.

When splitting `snake_case` words, omit the underscore

While we require camelCase by convention for official APIs, CRDs may use
`snake_case`, and the generic describer prints this as `Snake _ Case`.  We should print `Snake Case`

Prow is impacted by this for the ProwJob CRD:

```
  Decoration _ Config:
    Gcs _ Configuration:
      Bucket:                    origin-ci-test
      Default _ Org:             openshift
      Default _ Repo:            origin
      Path _ Strategy:           single
    Gcs _ Credentials _ Secret:  gcs-publisher-credentials
```

@kubernetes/sig-cli-pr-reviews

```release-note
Using `kubectl describe` on CRDs that use underscores will be prettier.
```
2018-06-24 02:29:30 -07:00
..
internalversion Merge pull request #65391 from smarterclayton/describe 2018-06-24 02:29:30 -07:00
storage Run hack/update-bazel.sh 2018-06-22 16:22:57 -07:00
.import-restrictions Restrict imports for printers 2017-02-23 00:28:31 -05:00
BUILD Run hack/update-bazel.sh 2018-06-22 16:22:57 -07:00
OWNERS Add pkg/printers OWNERS 2017-03-07 22:28:27 -05:00
customcolumn.go move PrintOptions to genericclioptions 2018-05-21 14:59:41 -04:00
customcolumn_flags.go fix kubectl -o 2018-06-05 19:49:07 +08:00
customcolumn_flags_test.go move PrintOptions to genericclioptions 2018-05-21 14:59:41 -04:00
customcolumn_test.go move PrintOptions to genericclioptions 2018-05-21 14:59:41 -04:00
humanreadable.go Fix up legacy printer table adapter 2018-06-07 13:20:04 -04:00
humanreadable_test.go use subtest for table units (pkg/printers) 2018-05-14 15:11:48 +08:00
interface.go slim down printer interface 2018-05-04 11:15:35 -04:00
jsonpath.go marshal bytes to return as string with `kubectl config view -o jsonpath` 2018-06-13 15:25:34 -04:00
jsonpath_flags.go fix kubectl -o 2018-06-05 19:49:07 +08:00
jsonpath_flags_test.go move PrintOptions to genericclioptions 2018-05-21 14:59:41 -04:00
kube_template_flags.go fix kubectl -o 2018-06-05 19:49:07 +08:00
tabwriter.go
template.go move PrintOptions to genericclioptions 2018-05-21 14:59:41 -04:00
template_flags.go fix kubectl -o 2018-06-05 19:49:07 +08:00
template_flags_test.go move PrintOptions to genericclioptions 2018-05-21 14:59:41 -04:00
template_test.go use subtest for table units (pkg/printers) 2018-05-14 15:11:48 +08:00