• Kubernetes Submit Queue's avatar
    Merge pull request #65391 from smarterclayton/describe · ec37c0f6
    Kubernetes Submit Queue authored
    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.
    ```
    ec37c0f6
Name
Last commit
Last update
..
.import-restrictions Loading commit data...
BUILD Loading commit data...
describe.go Loading commit data...
describe_test.go Loading commit data...
printers.go Loading commit data...
printers_test.go Loading commit data...
sorted_resource_name_list_test.go Loading commit data...