Use TYPE instead of RESOURCE in help string

For commands in kubectl, use TYPE in help string.
This commit is contained in:
hurf
2015-07-06 19:31:27 +08:00
parent 159ba48932
commit 33fb6170f9
21 changed files with 39 additions and 45 deletions

View File

@@ -43,9 +43,9 @@ Show details of a specific resource or group of resources.
This command joins many API calls together to form a detailed description of a
given resource or group of resources.
$ kubectl describe RESOURCE NAME_PREFIX
$ kubectl describe TYPE NAME_PREFIX
will first check for an exact match on RESOURCE and NAME_PREFIX. If no such resource
will first check for an exact match on TYPE and NAME_PREFIX. If no such resource
exists, it will output details for every resource that has a name prefixed with NAME_PREFIX
Possible resources include (case insensitive): pods (po), services (svc),
@@ -54,7 +54,7 @@ persistentvolumes (pv), persistentvolumeclaims (pvc), resourcequotas (quota),
namespaces (ns) or secrets.
```
kubectl describe (RESOURCE NAME_PREFIX | RESOURCE/NAME)
kubectl describe (TYPE [(NAME_PREFIX | -l label] | TYPE/NAME)
```
### Examples
@@ -114,8 +114,7 @@ $ kubectl describe pods frontend
* [kubectl](kubectl.md) - kubectl controls the Kubernetes cluster manager
###### Auto generated by spf13/cobra at 2015-07-31 07:12:36.111698336 +0000 UTC
###### Auto generated by spf13/cobra at 2015-08-05 08:29:19.076341666 +0000 UTC
<!-- BEGIN MUNGE: GENERATED_ANALYTICS -->
[![Analytics](https://kubernetes-site.appspot.com/UA-36037335-10/GitHub/docs/user-guide/kubectl/kubectl_describe.md?pixel)]()