Add a better help message for kubectl describe

When resource type isn't given in the command, print the possible
resource types. Also added the resource type description in help
strings.
This commit is contained in:
hurf
2015-07-07 11:14:28 +08:00
parent c6161824db
commit 6dd8a1dfa4
5 changed files with 39 additions and 24 deletions

View File

@@ -26,6 +26,12 @@ $ kubectl describe RESOURCE NAME\_PREFIX
will first check for an exact match on RESOURCE and NAME\_PREFIX. If no such resource
exists, it will output details for every resource that has a name prefixed with NAME\_PREFIX
.PP
Possible resources include pods (po), replicationcontrollers (rc), services
(svc), nodes (no), events (ev), componentstatuses (cs), limitRanges (limits),
persistentVolumes (pv), persistentVolumeClaims (pvc), resourceQuotas (quota)
or secrets.
.SH OPTIONS
.PP