Print resource labels as columns

This commit is contained in:
Anastasis Andronidis
2015-06-16 18:30:11 +02:00
parent ff0546da4f
commit b06ef70057
11 changed files with 268 additions and 103 deletions

View File

@@ -46,6 +46,7 @@ $ kubectl get rc/web service/frontend pods/web-pod-13je7
```
--all-namespaces=false: If present, list the requested object(s) across all namespaces. Namespace in current context is ignored even if specified with --namespace.
-h, --help=false: help for get
-L, --label-columns=[]: Accepts a comma separated list of labels that are going to be presented as columns. Names are case-sensitive. You can also use multiple flag statements like -L label1 -L label2...
--no-headers=false: When using the default output, don't print headers.
-o, --output="": Output format. One of: json|yaml|template|templatefile.
--output-version="": Output the formatted object with the given version (default api-version).
@@ -87,6 +88,6 @@ $ kubectl get rc/web service/frontend pods/web-pod-13je7
### SEE ALSO
* [kubectl](kubectl.md) - kubectl controls the Kubernetes cluster manager
###### Auto generated by spf13/cobra at 2015-06-05 21:08:36.511279339 +0000 UTC
###### Auto generated by spf13/cobra at 2015-06-21 22:41:03.746552518 +0000 UTC
[![Analytics](https://kubernetes-site.appspot.com/UA-36037335-10/GitHub/docs/kubectl_get.md?pixel)]()

View File

@@ -35,6 +35,10 @@ of the \-\-template flag, you can filter the attributes of the fetched resource(
\fB\-h\fP, \fB\-\-help\fP=false
help for get
.PP
\fB\-L\fP, \fB\-\-label\-columns\fP=[]
Accepts a comma separated list of labels that are going to be presented as columns. Names are case\-sensitive. You can also use multiple flag statements like \-L label1 \-L label2...
.PP
\fB\-\-no\-headers\fP=false
When using the default output, don't print headers.