Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add help text for rollback in kubectl rolling-update #17132

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 4 additions & 1 deletion docs/man/man1/kubectl-rolling-update.1
Original file line number Diff line number Diff line change
Expand Up @@ -199,9 +199,12 @@ $ cat frontend\-v2.json | kubectl rolling\-update frontend\-v1 \-f \-
# name of the replication controller.
$ kubectl rolling\-update frontend\-v1 frontend\-v2 \-\-image=image:v2

# Update the pods of frontend by just changing the image, and keeping the old name
# Update the pods of frontend by just changing the image, and keeping the old name.
$ kubectl rolling\-update frontend \-\-image=image:v2

# Abort and reverse an existing rollout in progress (from frontend\-v1 to frontend\-v2).
$ kubectl rolling\-update frontend\-v1 frontend\-v2 \-\-rollback


.fi
.RE
Expand Down
7 changes: 5 additions & 2 deletions docs/user-guide/kubectl/kubectl_rolling-update.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,12 @@ $ cat frontend-v2.json | kubectl rolling-update frontend-v1 -f -
# name of the replication controller.
$ kubectl rolling-update frontend-v1 frontend-v2 --image=image:v2

# Update the pods of frontend by just changing the image, and keeping the old name
# Update the pods of frontend by just changing the image, and keeping the old name.
$ kubectl rolling-update frontend --image=image:v2

# Abort and reverse an existing rollout in progress (from frontend-v1 to frontend-v2).
$ kubectl rolling-update frontend-v1 frontend-v2 --rollback

```

### Options
Expand Down Expand Up @@ -119,7 +122,7 @@ $ kubectl rolling-update frontend --image=image:v2

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

###### Auto generated by spf13/cobra on 19-Oct-2015
###### Auto generated by spf13/cobra on 11-Nov-2015

<!-- BEGIN MUNGE: GENERATED_ANALYTICS -->
[![Analytics](https://kubernetes-site.appspot.com/UA-36037335-10/GitHub/docs/user-guide/kubectl/kubectl_rolling-update.md?pixel)]()
Expand Down
5 changes: 4 additions & 1 deletion pkg/kubectl/cmd/rollingupdate.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,11 @@ $ cat frontend-v2.json | kubectl rolling-update frontend-v1 -f -
# name of the replication controller.
$ kubectl rolling-update frontend-v1 frontend-v2 --image=image:v2

# Update the pods of frontend by just changing the image, and keeping the old name
# Update the pods of frontend by just changing the image, and keeping the old name.
$ kubectl rolling-update frontend --image=image:v2

# Abort and reverse an existing rollout in progress (from frontend-v1 to frontend-v2).
$ kubectl rolling-update frontend-v1 frontend-v2 --rollback
`
)

Expand Down