From 0bde95f1ce1804a938edcff90b1e6a9ed051e834 Mon Sep 17 00:00:00 2001 From: Eric Tune Date: Fri, 30 Oct 2015 15:40:05 -0700 Subject: [PATCH] Fix incorrect flag in example. --- docs/man/man1/kubectl-run.1 | 2 +- docs/user-guide/kubectl/kubectl_run.md | 4 ++-- pkg/kubectl/cmd/run.go | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/man/man1/kubectl-run.1 b/docs/man/man1/kubectl-run.1 index 3173df27bb9..a40d494ac83 100644 --- a/docs/man/man1/kubectl-run.1 +++ b/docs/man/man1/kubectl-run.1 @@ -244,7 +244,7 @@ $ kubectl run nginx \-\-image=nginx \-\-dry\-run $ kubectl run nginx \-\-image=nginx \-\-overrides='{ "apiVersion": "v1", "spec": { ... } }' # Start a single instance of nginx and keep it in the foreground, don't restart it if it exits. -$ kubectl run \-i \-tty nginx \-\-image=nginx \-\-restart=Never +$ kubectl run \-i \-\-tty nginx \-\-image=nginx \-\-restart=Never # Start the nginx container using the default command, but use custom arguments (arg1 .. argN) for that command. $ kubectl run nginx \-\-image=nginx \-\- ... diff --git a/docs/user-guide/kubectl/kubectl_run.md b/docs/user-guide/kubectl/kubectl_run.md index a624268afea..22f1771482b 100644 --- a/docs/user-guide/kubectl/kubectl_run.md +++ b/docs/user-guide/kubectl/kubectl_run.md @@ -67,7 +67,7 @@ $ kubectl run nginx --image=nginx --dry-run $ kubectl run nginx --image=nginx --overrides='{ "apiVersion": "v1", "spec": { ... } }' # Start a single instance of nginx and keep it in the foreground, don't restart it if it exits. -$ kubectl run -i -tty nginx --image=nginx --restart=Never +$ kubectl run -i --tty nginx --image=nginx --restart=Never # Start the nginx container using the default command, but use custom arguments (arg1 .. argN) for that command. $ kubectl run nginx --image=nginx -- ... @@ -139,7 +139,7 @@ $ kubectl run nginx --image=nginx --command -- ... * [kubectl](kubectl.md) - kubectl controls the Kubernetes cluster manager -###### Auto generated by spf13/cobra on 20-Oct-2015 +###### Auto generated by spf13/cobra on 30-Oct-2015 [![Analytics](https://kubernetes-site.appspot.com/UA-36037335-10/GitHub/docs/user-guide/kubectl/kubectl_run.md?pixel)]() diff --git a/pkg/kubectl/cmd/run.go b/pkg/kubectl/cmd/run.go index 1b149d6d061..f39f86a1aa0 100644 --- a/pkg/kubectl/cmd/run.go +++ b/pkg/kubectl/cmd/run.go @@ -54,7 +54,7 @@ $ kubectl run nginx --image=nginx --dry-run $ kubectl run nginx --image=nginx --overrides='{ "apiVersion": "v1", "spec": { ... } }' # Start a single instance of nginx and keep it in the foreground, don't restart it if it exits. -$ kubectl run -i -tty nginx --image=nginx --restart=Never +$ kubectl run -i --tty nginx --image=nginx --restart=Never # Start the nginx container using the default command, but use custom arguments (arg1 .. argN) for that command. $ kubectl run nginx --image=nginx -- ...