Validate image name for kubectl rolling-update NAME --image=IMAGE

Require distinct image from current one when starting a new
rolling-update, and exit with error if an existing in-progress update
is targeting a different image.
This commit is contained in:
Jeff Lowdermilk
2015-10-19 16:59:02 -07:00
parent fd176642d3
commit 5bf993bf28
3 changed files with 10 additions and 4 deletions

View File

@@ -36,7 +36,7 @@ existing replication controller and overwrite at least one (common) label in its
.PP
\fB\-\-image\fP=""
Image to use for upgrading the replication controller. Can not be used with \-\-filename/\-f
Image to use for upgrading the replication controller. Must be distinct from the existing image (either new image or new image tag). Can not be used with \-\-filename/\-f
.PP
\fB\-\-no\-headers\fP=false