Skip to content

Commit 3ee155e

Browse files
Revive incremental blue-green deploy option
1 parent 7cb48f7 commit 3ee155e

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

commands/deploy_command.go

+4-7
Original file line numberDiff line numberDiff line change
@@ -141,9 +141,6 @@ func (c *DeployCommand) GetPluginCommand() plugin.Command {
141141
util.GetShortOption(strategyOpt): "Specify the deployment strategy when updating an mta (default, blue-green, (EXPERIMENTAL) incremental-blue-green)",
142142
util.GetShortOption(skipTestingPhase): "(STRATEGY: BLUE-GREEN, (EXPERIMENTAL) INCREMENTAL-BLUE-GREEN) Do not require confirmation for deleting the previously deployed MTA app",
143143
util.GetShortOption(skipIdleStart): "(STRATEGY: BLUE-GREEN, (EXPERIMENTAL) INCREMENTAL-BLUE-GREEN) Directly start the new MTA version as 'live', skipping the 'idle' phase of the resources. Do not require further confirmation or testing before deleting the old version",
144-
util.GetShortOption(strategyOpt): "Specify the deployment strategy when updating an mta (default, blue-green)",
145-
util.GetShortOption(skipTestingPhase): "(STRATEGY: BLUE-GREEN) Do not require confirmation for deleting the previously deployed MTA app",
146-
util.GetShortOption(skipIdleStart): "(STRATEGY: BLUE-GREEN) Directly start the new MTA version as 'live', skipping the 'idle' phase of the resources. Do not require further confirmation or testing before deleting the old version",
147144
util.GetShortOption(stageTimeoutOpt): "Stage app timeout in seconds",
148145
util.GetShortOption(uploadTimeoutOpt): "Upload app timeout in seconds",
149146
util.GetShortOption(taskExecutionTimeoutOpt): "Task execution timeout in seconds",
@@ -180,11 +177,11 @@ func deployProcessParametersSetter() ProcessParametersSetter {
180177
if arg == "-t" {
181178
if i+1 < len(os.Args) {
182179
lastSetValue = os.Args[i+1]
183-
i++
180+
i++
184181
}
185182
} else if arg == "--apps-start-timeout" {
186183
if i+1 < len(os.Args) {
187-
lastSetValue = os.Args[i+1]
184+
lastSetValue = os.Args[i+1]
188185
i++
189186
}
190187
}
@@ -201,7 +198,7 @@ func (c *DeployCommand) defineCommandOptions(flags *flag.FlagSet) {
201198
flags.String(versionRuleOpt, "", "")
202199
flags.Bool(deleteServicesOpt, false, "")
203200
flags.Bool(noStartOpt, false, "")
204-
flags.String(namespaceOpt, "", "")
201+
flags.String(namespaceOpt, "", "")
205202
flags.String(applyNamespaceAppNamesOpt, "", "")
206203
flags.String(applyNamespaceServiceNamesOpt, "", "")
207204
flags.String(applyNamespaceAppRoutesOpt, "", "")
@@ -356,7 +353,7 @@ func (c *DeployCommand) executeInternal(positionalArgs []string, dsHost string,
356353
processBuilder.Parameter("applyNamespaceServiceNames", GetStringOpt(applyNamespaceServiceNamesOpt, flags))
357354
processBuilder.Parameter("applyNamespaceAppRoutes", GetStringOpt(applyNamespaceAppRoutesOpt, flags))
358355
processBuilder.Parameter("applyNamespaceAsSuffix", GetStringOpt(applyNamespaceAsSuffix, flags))
359-
356+
360357
processBuilder.Parameter("appArchiveId", strings.Join(uploadedArchivePartIds, ","))
361358
processBuilder.Parameter("mtaExtDescriptorId", strings.Join(uploadedExtDescriptorIDs, ","))
362359
processBuilder.Parameter("mtaId", mtaId)

0 commit comments

Comments
 (0)