@@ -36,7 +36,7 @@ existing replication controller and overwrite at least one (common) label in its
...
@@ -36,7 +36,7 @@ existing replication controller and overwrite at least one (common) label in its
.PP
.PP
\fB\-\-image\fP=""
\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
--deployment-label-key="deployment": The key to use to differentiate between two different controllers, default 'deployment'. Only relevant when --image is specified, ignored otherwise
--deployment-label-key="deployment": The key to use to differentiate between two different controllers, default 'deployment'. Only relevant when --image is specified, ignored otherwise
--dry-run[=false]: If true, print out the changes that would be made, but don't actually make them.
--dry-run[=false]: If true, print out the changes that would be made, but don't actually make them.
-f, --filename=[]: Filename or URL to file to use to create the new replication controller.
-f, --filename=[]: Filename or URL to file to use to create the new replication controller.
--image="": Image to use for upgrading the replication controller. Can not be used with --filename/-f
--image="": 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
--no-headers[=false]: When using the default output, don't print headers.
--no-headers[=false]: When using the default output, don't print headers.
-o, --output="": Output format. One of: json|yaml|wide|name|go-template=...|go-template-file=...|jsonpath=...|jsonpath-file=... See golang template [http://golang.org/pkg/text/template/#pkg-overview] and jsonpath template [http://releases.k8s.io/HEAD/docs/user-guide/jsonpath.md].
-o, --output="": Output format. One of: json|yaml|wide|name|go-template=...|go-template-file=...|jsonpath=...|jsonpath-file=... See golang template [http://golang.org/pkg/text/template/#pkg-overview] and jsonpath template [http://releases.k8s.io/HEAD/docs/user-guide/jsonpath.md].
--output-version="": Output the formatted object with the given version (default api-version).
--output-version="": Output the formatted object with the given version (default api-version).
cmd.Flags().String("image","","Image to use for upgrading the replication controller. Can not be used with --filename/-f")
cmd.Flags().String("image","","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")
cmd.MarkFlagRequired("image")
cmd.MarkFlagRequired("image")
cmd.Flags().String("deployment-label-key","deployment","The key to use to differentiate between two different controllers, default 'deployment'. Only relevant when --image is specified, ignored otherwise")
cmd.Flags().String("deployment-label-key","deployment","The key to use to differentiate between two different controllers, default 'deployment'. Only relevant when --image is specified, ignored otherwise")
cmd.Flags().Bool("dry-run",false,"If true, print out the changes that would be made, but don't actually make them.")
cmd.Flags().Bool("dry-run",false,"If true, print out the changes that would be made, but don't actually make them.")
returncmdutil.UsageError(cmd,"Found existing in-progress update to image (%s).\nEither continue in-progress update with --image=%s or rollback with --rollback",inProgressImage,inProgressImage)
}
fmt.Fprintf(out,"Found existing update in progress (%s), resuming.\n",newRc.Name)
fmt.Fprintf(out,"Found existing update in progress (%s), resuming.\n",newRc.Name)