Skip to content

Commit 84f9028

Browse files
committed
Add experimental to rollback feature
1 parent 2e1fcbe commit 84f9028

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

commands/blue_green_deploy_command.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ func (c *BlueGreenDeployCommand) GetPluginCommand() plugin.Command {
6464
util.GetShortOption(uploadTimeoutOpt): "Upload app timeout in seconds",
6565
util.GetShortOption(taskExecutionTimeoutOpt): "Task execution timeout in seconds",
6666
util.CombineFullAndShortParameters(startTimeoutOpt, timeoutOpt): "Start app timeout in seconds",
67-
util.GetShortOption(shouldBackupPreviousVersionOpt): "Backup previous version of applications, use new cli command \"rollback-mta\" to rollback to the previous version",
67+
util.GetShortOption(shouldBackupPreviousVersionOpt): "(EXPERIMENTAL) Backup previous version of applications, use new cli command \"rollback-mta\" to rollback to the previous version",
6868
},
6969
},
7070
}

commands/deploy_command.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ func (c *DeployCommand) GetPluginCommand() plugin.Command {
145145
util.GetShortOption(uploadTimeoutOpt): "Upload app timeout in seconds",
146146
util.GetShortOption(taskExecutionTimeoutOpt): "Task execution timeout in seconds",
147147
util.CombineFullAndShortParameters(startTimeoutOpt, timeoutOpt): "Start app timeout in seconds",
148-
util.GetShortOption(shouldBackupPreviousVersionOpt): "(STRATEGY: BLUE-GREEN, INCREMENTAL-BLUE-GREEN) Backup previous version of applications, use new cli command \"rollback-mta\" to rollback to the previous version",
148+
util.GetShortOption(shouldBackupPreviousVersionOpt): "(EXPERIMENTAL) (STRATEGY: BLUE-GREEN, INCREMENTAL-BLUE-GREEN) Backup previous version of applications, use new cli command \"rollback-mta\" to rollback to the previous version",
149149
},
150150
},
151151
}

commands/rollback_mta command_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ var _ = Describe("RollbackMtaCommand", func() {
9797
It("returns the correct plugin command", func() {
9898
pluginCmd := command.GetPluginCommand()
9999
Expect(pluginCmd.Name).To(Equal("rollback-mta"))
100-
Expect(pluginCmd.HelpText).To(Equal("Rollback of a multi-target app works only if [--backup-previous-version] flag was used during blue-green deployment and backup applications exists in the space"))
100+
Expect(pluginCmd.HelpText).To(Equal("(EXPERIMENTAL) Rollback of a multi-target app works only if [--backup-previous-version] flag was used during blue-green deployment and backup applications exists in the space"))
101101
})
102102
})
103103

commands/rollback_mta_command.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ func NewRollbackMtaCommand() *RollbackMtaCommand {
3333
func (c *RollbackMtaCommand) GetPluginCommand() plugin.Command {
3434
return plugin.Command{
3535
Name: "rollback-mta",
36-
HelpText: "Rollback of a multi-target app works only if [--backup-previous-version] flag was used during blue-green deployment and backup applications exists in the space",
36+
HelpText: "(EXPERIMENTAL) Rollback of a multi-target app works only if [--backup-previous-version] flag was used during blue-green deployment and backup applications exists in the space",
3737
UsageDetails: plugin.Usage{
3838
Usage: `Rollback of a multi-target app
3939
cf rollback-mta MTA_ID [-t TIMEOUT] [-f] [--retries RETRIES] [--namespace NAMESPACE] [--do-not-fail-on-missing-permissions] [--abort-on-error] [--apps-start-timeout TIMEOUT] [--apps-stage-timeout TIMEOUT] [--apps-upload-timeout TIMEOUT] [--apps-task-execution-timeout TIMEOUT]

0 commit comments

Comments
 (0)