Skip to content

Commit b00c04c

Browse files
committed
Merge pull request kubernetes#12845 from hurf/o_name
Add -o name for commands which use printer to output results
2 parents 1bae2b6 + d2d96ff commit b00c04c

20 files changed

+138
-26
lines changed

docs/man/man1/kubectl-annotate.1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ resourcequotas (quota) or secrets.
4747

4848
.PP
4949
\fB\-o\fP, \fB\-\-output\fP=""
50-
Output format. One of: json|yaml|template|templatefile|wide|jsonpath.
50+
Output format. One of: json|yaml|template|templatefile|wide|jsonpath|name.
5151

5252
.PP
5353
\fB\-\-output\-version\fP=""

docs/man/man1/kubectl-config-view.1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ You can use \-\-output=template \-\-template=TEMPLATE to extract specific values
4242

4343
.PP
4444
\fB\-o\fP, \fB\-\-output\fP=""
45-
Output format. One of: json|yaml|template|templatefile|wide|jsonpath.
45+
Output format. One of: json|yaml|template|templatefile|wide|jsonpath|name.
4646

4747
.PP
4848
\fB\-\-output\-version\fP=""

docs/man/man1/kubectl-expose.1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ re\-use the labels from the resource it exposes.
6464

6565
.PP
6666
\fB\-o\fP, \fB\-\-output\fP=""
67-
Output format. One of: json|yaml|template|templatefile|wide|jsonpath.
67+
Output format. One of: json|yaml|template|templatefile|wide|jsonpath|name.
6868

6969
.PP
7070
\fB\-\-output\-version\fP=""

docs/man/man1/kubectl-get.1

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ of the \-\-template flag, you can filter the attributes of the fetched resource(
4949

5050
.PP
5151
\fB\-o\fP, \fB\-\-output\fP=""
52-
Output format. One of: json|yaml|template|templatefile|wide|jsonpath.
52+
Output format. One of: json|yaml|template|templatefile|wide|jsonpath|name.
5353

5454
.PP
5555
\fB\-\-output\-version\fP=""
@@ -187,6 +187,9 @@ $ kubectl get pods
187187
# List all pods in ps output format with more information (such as node name).
188188
$ kubectl get pods \-o wide
189189

190+
# List all pods in resource/name format (such as pod/nginx).
191+
$ kubectl get pods \-o name
192+
190193
# List a single replication controller with specified NAME in ps output format.
191194
$ kubectl get replicationcontroller web
192195

docs/man/man1/kubectl-label.1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ If \-\-resource\-version is specified, then updates will use this resource versi
4040

4141
.PP
4242
\fB\-o\fP, \fB\-\-output\fP=""
43-
Output format. One of: json|yaml|template|templatefile|wide|jsonpath.
43+
Output format. One of: json|yaml|template|templatefile|wide|jsonpath|name.
4444

4545
.PP
4646
\fB\-\-output\-version\fP=""

docs/man/man1/kubectl-rolling-update.1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ existing replication controller and overwrite at least one (common) label in its
4848

4949
.PP
5050
\fB\-o\fP, \fB\-\-output\fP=""
51-
Output format. One of: json|yaml|template|templatefile|wide|jsonpath.
51+
Output format. One of: json|yaml|template|templatefile|wide|jsonpath|name.
5252

5353
.PP
5454
\fB\-\-output\-version\fP=""

docs/man/man1/kubectl-run.1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ Creates a replication controller to manage the created container(s).
5656

5757
.PP
5858
\fB\-o\fP, \fB\-\-output\fP=""
59-
Output format. One of: json|yaml|template|templatefile|wide|jsonpath.
59+
Output format. One of: json|yaml|template|templatefile|wide|jsonpath|name.
6060

6161
.PP
6262
\fB\-\-output\-version\fP=""

docs/user-guide/kubectl/kubectl_annotate.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ $ kubectl annotate pods foo description-
8585
-f, --filename=[]: Filename, directory, or URL to a file identifying the resource to update the annotation
8686
-h, --help[=false]: help for annotate
8787
--no-headers[=false]: When using the default output, don't print headers.
88-
-o, --output="": Output format. One of: json|yaml|template|templatefile|wide|jsonpath.
88+
-o, --output="": Output format. One of: json|yaml|template|templatefile|wide|jsonpath|name.
8989
--output-version="": Output the formatted object with the given version (default api-version).
9090
--overwrite[=false]: If true, allow annotations to be overwritten, otherwise reject annotation updates that overwrite existing annotations.
9191
--resource-version="": If non-empty, the annotation update will only succeed if this is the current resource-version for the object. Only valid when specifying a single resource.
@@ -126,7 +126,7 @@ $ kubectl annotate pods foo description-
126126

127127
* [kubectl](kubectl.md) - kubectl controls the Kubernetes cluster manager
128128

129-
###### Auto generated by spf13/cobra at 2015-08-21 07:07:55.977091863 +0000 UTC
129+
###### Auto generated by spf13/cobra at 2015-08-25 11:50:09.184436452 +0000 UTC
130130

131131
<!-- BEGIN MUNGE: GENERATED_ANALYTICS -->
132132
[![Analytics](https://kubernetes-site.appspot.com/UA-36037335-10/GitHub/docs/user-guide/kubectl/kubectl_annotate.md?pixel)]()

docs/user-guide/kubectl/kubectl_config_view.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ $ kubectl config view -o template --template='{{range .users}}{{ if eq .name "e2
6464
--merge=true: merge together the full hierarchy of kubeconfig files
6565
--minify[=false]: remove all information not used by current-context from the output
6666
--no-headers[=false]: When using the default output, don't print headers.
67-
-o, --output="": Output format. One of: json|yaml|template|templatefile|wide|jsonpath.
67+
-o, --output="": Output format. One of: json|yaml|template|templatefile|wide|jsonpath|name.
6868
--output-version="": Output the formatted object with the given version (default api-version).
6969
--raw[=false]: display raw byte data
7070
-a, --show-all[=false]: When printing, show all resources (default hide terminated pods.)
@@ -104,7 +104,7 @@ $ kubectl config view -o template --template='{{range .users}}{{ if eq .name "e2
104104

105105
* [kubectl config](kubectl_config.md) - config modifies kubeconfig files
106106

107-
###### Auto generated by spf13/cobra at 2015-08-25 10:17:24.594231276 +0000 UTC
107+
###### Auto generated by spf13/cobra at 2015-08-26 09:03:39.977436672 +0000 UTC
108108

109109
<!-- BEGIN MUNGE: GENERATED_ANALYTICS -->
110110
[![Analytics](https://kubernetes-site.appspot.com/UA-36037335-10/GitHub/docs/user-guide/kubectl/kubectl_config_view.md?pixel)]()

docs/user-guide/kubectl/kubectl_expose.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ $ kubectl expose rc streamer --port=4100 --protocol=udp --name=video-stream
7777
-l, --labels="": Labels to apply to the service created by this call.
7878
--name="": The name for the newly created object.
7979
--no-headers[=false]: When using the default output, don't print headers.
80-
-o, --output="": Output format. One of: json|yaml|template|templatefile|wide|jsonpath.
80+
-o, --output="": Output format. One of: json|yaml|template|templatefile|wide|jsonpath|name.
8181
--output-version="": Output the formatted object with the given version (default api-version).
8282
--overrides="": An inline JSON override for the generated object. If this is non-empty, it is used to override the generated object. Requires that the object supply a valid apiVersion field.
8383
--port=-1: The port that the service should serve on. Copied from the resource being exposed, if unspecified
@@ -123,7 +123,7 @@ $ kubectl expose rc streamer --port=4100 --protocol=udp --name=video-stream
123123

124124
* [kubectl](kubectl.md) - kubectl controls the Kubernetes cluster manager
125125

126-
###### Auto generated by spf13/cobra at 2015-08-25 10:17:24.593785768 +0000 UTC
126+
###### Auto generated by spf13/cobra at 2015-08-26 09:03:39.976795003 +0000 UTC
127127

128128
<!-- BEGIN MUNGE: GENERATED_ANALYTICS -->
129129
[![Analytics](https://kubernetes-site.appspot.com/UA-36037335-10/GitHub/docs/user-guide/kubectl/kubectl_expose.md?pixel)]()

0 commit comments

Comments
 (0)