k3s/pkg
Kubernetes Submit Queue 263897a31c
Merge pull request #58420 from kragniz/valid-resource-printing
Automatic merge from submit-queue (batch tested with PRs 58420, 60483). 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>.

kubectl: make error with resource list prettier

**What this PR does / why we need it**:

Previously, running commands like `kubectl get` with no further
arguments would print a list of valid resource types with an error
messages formatted like so:

    <snip>
      * serviceaccounts (aka 'sa')
      * services (aka 'svc')
      * statefulsets (aka 'sts')
      * storageclasses (aka 'sc')error: Required resource not specified.
    Use "kubectl explain <resource>" for a detailed description of that resource (e.g. kubectl explain pods).
    See 'kubectl get -h' for help and examples.

This commit adds extra spacing so it now looks pretty:

    <snip>
      * serviceaccounts (aka 'sa')
      * services (aka 'svc')
      * statefulsets (aka 'sts')
      * storageclasses (aka 'sc')

    error: Required resource not specified.
    Use "kubectl explain <resource>" for a detailed description of that resource (e.g. kubectl explain pods).
    See 'kubectl get -h' for help and examples.





**Which issue(s) this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close the issue(s) when PR gets merged)*:
Fixes #

**Special notes for your reviewer**:

**Release note**:

```release-note
NONE
```
2018-04-04 05:03:05 -07:00
..
api remove unused pkg unversioned 2018-03-13 15:06:38 +08:00
apis Merge pull request #61806 from hzxuzhonghu/LoadBalancerStatus-DeepCopy 2018-04-03 17:24:21 -07:00
auth
capabilities
client Set leader-elect for kube-scheduler to true 2018-03-30 10:52:01 -04:00
cloudprovider Add support for multiple certificates to targetproxy 2018-04-02 23:34:08 -07:00
controller Merge pull request #61806 from hzxuzhonghu/LoadBalancerStatus-DeepCopy 2018-04-03 17:24:21 -07:00
credentialprovider
features Delete in-tree support for NVIDIA GPUs. 2018-04-02 20:17:01 -07:00
fieldpath
generated Vendor kazel 2018-03-29 17:01:32 -07:00
kubeapiserver Merge pull request #60100 from mtaufen/node-authz-nodeconfigsource 2018-03-29 17:37:18 -07:00
kubectl Merge pull request #58420 from kragniz/valid-resource-printing 2018-04-04 05:03:05 -07:00
kubelet Merge pull request #61498 from mindprince/delete-in-tree-gpu 2018-04-03 02:02:04 -07:00
kubemark
master remove kube-apiserver option that is always force to true 2018-04-02 12:19:34 -04:00
printers wire through humanreadable flags 2018-04-03 13:59:35 -04:00
probe
proxy Merge pull request #61806 from hzxuzhonghu/LoadBalancerStatus-DeepCopy 2018-04-03 17:24:21 -07:00
quota Resources prefixed with *kubernetes.io/ should remain unscheduled if they are not exposed on the node. 2018-03-28 17:24:30 -07:00
registry Merge pull request #60519 from bsalamat/auto_prio_class 2018-03-26 23:20:05 -07:00
routes
scheduler Delete in-tree support for NVIDIA GPUs. 2018-04-02 20:17:01 -07:00
security Update gofmt for go1.10 2018-04-02 17:44:04 -07:00
securitycontext remove unused code in securitycontext 2018-03-29 23:32:48 -07:00
serviceaccount
ssh
util Merge pull request #60073 from justaugustus/int-to-int32ptr 2018-04-02 16:22:28 -07:00
version
volume Merge pull request #62012 from andyzhangx/local-windows-fix 2018-04-03 11:33:13 -07:00
watch/json
windows/service
.import-restrictions
BUILD pkg/api/unversioned related cleanup 2018-03-13 17:20:16 +08:00
OWNERS