Merge pull request #37608 from tianshapjq/modify-get-help

Automatic merge from submit-queue (batch tested with PRs 37608, 37103, 37320, 37607, 37678)

add some help info about the 'all' arg

**What this PR does / why we need it**:
There is an arg named "all" in the get command, we can use it like "kubectl get all". But we can get nothing about this arg in the help description. Users may not know how to use it without looking into the source code. So here I'm going to add some description about this arg.

**Which issue this PR fixes** 
We discussed about this in 
In pkg/kubectl/cmd/get.go there is a confused arg named "all" [#37533](https://github.com/kubernetes/kubernetes/issues/37533)
This commit is contained in:
Kubernetes Submit Queue 2016-12-02 23:32:44 -08:00 committed by GitHub
commit 39e63e3e53
2 changed files with 5 additions and 1 deletions

View File

@ -170,6 +170,7 @@ __custom_func() {
// TODO: This should be populated using the discovery information from apiserver.
valid_resources = `Valid resource types include:
* all
* clusters (valid only for federation apiservers)
* componentstatuses (aka 'cs')
* configmaps (aka 'cm')

View File

@ -77,7 +77,10 @@ var (
kubectl get rc,services
# List one or more resources by their type and names.
kubectl get rc/web service/frontend pods/web-pod-13je7`)
kubectl get rc/web service/frontend pods/web-pod-13je7
# List all resources with different types.
kubectl get all`)
)
// NewCmdGet creates a command object for the generic "get" action, which