Merge pull request #13383 from hurf/label_drun

Add --dry-run option for label command
This commit is contained in:
Quinton Hoole
2015-09-04 14:03:14 -07:00
4 changed files with 26 additions and 9 deletions

View File

@@ -75,6 +75,7 @@ $ kubectl label pods foo bar-
```
--all[=false]: select all resources in the namespace of the specified resource types
--dry-run[=false]: If true, only print the object that would be sent, without sending it.
-f, --filename=[]: Filename, directory, or URL to a file identifying the resource to update the labels
-h, --help[=false]: help for label
--no-headers[=false]: When using the default output, don't print headers.
@@ -120,7 +121,7 @@ $ kubectl label pods foo bar-
* [kubectl](kubectl.md) - kubectl controls the Kubernetes cluster manager
###### Auto generated by spf13/cobra at 2015-08-26 09:03:39.977006328 +0000 UTC
###### Auto generated by spf13/cobra at 2015-08-31 12:51:55.222410248 +0000 UTC
<!-- BEGIN MUNGE: GENERATED_ANALYTICS -->
[![Analytics](https://kubernetes-site.appspot.com/UA-36037335-10/GitHub/docs/user-guide/kubectl/kubectl_label.md?pixel)]()