• Kubernetes Submit Queue's avatar
    Merge pull request #40950 from MHBauer/duplicate-defaults · 102f267b
    Kubernetes Submit Queue authored
    Automatic merge from submit-queue
    
    Remove defaults from string flags
    
    - The default is printed automatically
     - The string text did not match the actual default
    
    **What this PR does / why we need it**:
    Adjust the documentation for flags on `client-gen`.
    
    **Special notes for your reviewer**:
    Doc change. String text only.
    
    **Release note**:
    ```release-note
    NONE
    ```
    
    Before:
    ```
    client-gen  --help
    Usage of ./client-gen:
          --build-tag string                       A Go build tag to use to identify files generated by this command. Should be unique. (default "ignore_autogenerated")
          --clientset-api-path string              the value of default API path.
      -n, --clientset-name string                  the name of the generated clientset package. (default "internalclientset")
          --clientset-only                         when set, client-gen only generates the clientset shell, without generating the individual typed clients
          --clientset-path string                  the generated clientset will be output to <clientset-path>/<clientset-name>. Default to "k8s.io/kubernetes/pkg/client/clientset_generated/" (default "k8s.io/kubernetes/pkg/client/clientset_generated/")
          --fake-clientset                         when set, client-gen will generate the fake clientset that can be used in tests (default true)
      -h, --go-header-file string                  File containing boilerplate header text. The string YEAR will be replaced with the current 4-digit year. (default "/Users/mhb/go/src/k8s.io/gengo/boilerplate/boilerplate.go.txt")
          --included-types-overrides stringSlice   list of group/version/type for which client should be generated. By default, client is generated for all types which have genclient=true in types.go. This overrides that. For each groupVersion in this list, only the types mentioned here will be included. The default check of genclient=true will be used for other group versions.
          --input stringSlice                      group/versions that client-gen will generate clients for. At most one version per group is allowed. Specified in the format "group1/version1,group2/version2...". Default to "api/,extensions/,autoscaling/,batch/,rbac/" (default [api/,authentication/,authorization/,autoscaling/,batch/,certificates/,extensions/,rbac/,storage/,apps/,policy/])
          --input-base string                      base path to look for the api group. Default to "k8s.io/kubernetes/pkg/apis" (default "k8s.io/kubernetes/pkg/apis")
      -i, --input-dirs stringSlice                 Comma-separated list of import paths to get input types from.
      -o, --output-base string                     Output base; defaults to $GOPATH/src/ or ./ if $GOPATH is not set. (default "/Users/mhb/go/src")
      -O, --output-file-base string                Base name (without .go suffix) for output files.
      -p, --output-package string                  Base package path.
      -t, --test                                   set this flag to generate the client code for the testdata
          --verify-only                            If true, only verify existing output, do not write anything.
    ```
    After:
    ```
    client-gen  --help
    Usage of ./client-gen:
          --build-tag string                       A Go build tag to use to identify files generated by this command. Should be unique. (default "ignore_autogenerated")
          --clientset-api-path string              the value of default API path.
      -n, --clientset-name string                  the name of the generated clientset package. (default "internalclientset")
          --clientset-only                         when set, client-gen only generates the clientset shell, without generating the individual typed clients
          --clientset-path string                  the generated clientset will be output to <clientset-path>/<clientset-name>. (default "k8s.io/kubernetes/pkg/client/clientset_generated/")
          --fake-clientset                         when set, client-gen will generate the fake clientset that can be used in tests (default true)
      -h, --go-header-file string                  File containing boilerplate header text. The string YEAR will be replaced with the current 4-digit year. (default "/Users/mhb/go/src/k8s.io/gengo/boilerplate/boilerplate.go.txt")
          --included-types-overrides stringSlice   list of group/version/type for which client should be generated. By default, client is generated for all types which have genclient=true in types.go. This overrides that. For each groupVersion in this list, only the types mentioned here will be included. The default check of genclient=true will be used for other group versions.
          --input stringSlice                      group/versions that client-gen will generate clients for. At most one version per group is allowed. Specified in the format "group1/version1,group2/version2...". (default [api/,authentication/,authorization/,autoscaling/,batch/,certificates/,extensions/,rbac/,storage/,apps/,policy/])
          --input-base string                      base path to look for the api group. (default "k8s.io/kubernetes/pkg/apis")
      -i, --input-dirs stringSlice                 Comma-separated list of import paths to get input types from.
      -o, --output-base string                     Output base; defaults to $GOPATH/src/ or ./ if $GOPATH is not set. (default "/Users/mhb/go/src")
      -O, --output-file-base string                Base name (without .go suffix) for output files.
      -p, --output-package string                  Base package path.
      -t, --test                                   set this flag to generate the client code for the testdata
          --verify-only                            If true, only verify existing output, do not write anything.
    ```
    102f267b
Name
Last commit
Last update
..
clicheck Loading commit data...
cloud-controller-manager Loading commit data...
gendocs Loading commit data...
genkubedocs Loading commit data...
genman Loading commit data...
genslateyaml Loading commit data...
genswaggertypedocs Loading commit data...
genutils Loading commit data...
genyaml Loading commit data...
gke-certificates-controller Loading commit data...
hyperkube Loading commit data...
kube-apiserver Loading commit data...
kube-controller-manager Loading commit data...
kube-discovery Loading commit data...
kube-proxy Loading commit data...
kubeadm Loading commit data...
kubectl Loading commit data...
kubelet Loading commit data...
kubemark Loading commit data...
libs/go2idl Loading commit data...
linkcheck Loading commit data...
mungedocs Loading commit data...
BUILD Loading commit data...
OWNERS Loading commit data...