Skip to content

Commit d27a4e2

Browse files
authored
Merge pull request #221 from cloudfoundry/rollback-feature
Rollback feature
2 parents eb07b7a + 10ae38c commit d27a4e2

7 files changed

+585
-141
lines changed

commands/blue_green_deploy_command.go

Lines changed: 27 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -38,32 +38,33 @@ func (c *BlueGreenDeployCommand) GetPluginCommand() plugin.Command {
3838
Perform action on an active deploy operation
3939
cf deploy -i OPERATION_ID -a ACTION [-u URL]`,
4040
Options: map[string]string{
41-
extDescriptorsOpt: "Extension descriptors",
42-
deployServiceURLOpt: "Deploy service URL, by default 'deploy-service.<system-domain>'",
43-
versionRuleOpt: "Version rule (HIGHER, SAME_HIGHER, ALL)",
44-
operationIDOpt: "Active deploy operation ID",
45-
actionOpt: "Action to perform on active deploy operation (abort, retry, resume, monitor)",
46-
forceOpt: "Force deploy without confirmation for aborting conflicting processes",
47-
util.GetShortOption(noStartOpt): "Do not start apps",
48-
util.GetShortOption(namespaceOpt): "(EXPERIMENTAL) Namespace for the MTA, applied on app names, app routes and service names",
49-
util.GetShortOption(applyNamespaceAppNamesOpt): "(EXPERIMENTAL) Apply namespace to application names: (true, false)",
50-
util.GetShortOption(applyNamespaceServiceNamesOpt): "(EXPERIMENTAL) Apply namespace to service names: (true, false)",
51-
util.GetShortOption(applyNamespaceAppRoutesOpt): "(EXPERIMENTAL) Apply namespace to application routes: (true, false)",
52-
util.GetShortOption(applyNamespaceAsSuffix): "(EXPERIMENTAL) Apply namespace as a suffix rather than a prefix: (true, false)",
53-
util.GetShortOption(deleteServicesOpt): "Recreate changed services / delete discontinued services",
54-
util.GetShortOption(deleteServiceKeysOpt): "Delete existing service keys and apply the new ones",
55-
util.GetShortOption(deleteServiceBrokersOpt): "Delete discontinued service brokers",
56-
util.GetShortOption(keepFilesOpt): "Keep files used for deployment",
57-
util.GetShortOption(noRestartSubscribedAppsOpt): "Do not restart subscribed apps, updated during the deployment",
58-
util.GetShortOption(noConfirmOpt): "Do not require confirmation for deleting the previously deployed MTA apps",
59-
util.GetShortOption(noFailOnMissingPermissionsOpt): "Do not fail on missing permissions for admin operations",
60-
util.GetShortOption(abortOnErrorOpt): "Auto-abort the process on any errors",
61-
util.GetShortOption(retriesOpt): "Retry the operation N times in case a non-content error occurs (default 3)",
62-
util.GetShortOption(skipIdleStart): "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",
63-
util.GetShortOption(stageTimeoutOpt): "Stage app timeout in seconds",
64-
util.GetShortOption(uploadTimeoutOpt): "Upload app timeout in seconds",
65-
util.GetShortOption(taskExecutionTimeoutOpt): "Task execution timeout in seconds",
66-
util.CombineFullAndShortParameters(startTimeoutOpt, timeoutOpt): "Start app timeout in seconds",
41+
extDescriptorsOpt: "Extension descriptors",
42+
deployServiceURLOpt: "Deploy service URL, by default 'deploy-service.<system-domain>'",
43+
versionRuleOpt: "Version rule (HIGHER, SAME_HIGHER, ALL)",
44+
operationIDOpt: "Active deploy operation ID",
45+
actionOpt: "Action to perform on active deploy operation (abort, retry, resume, monitor)",
46+
forceOpt: "Force deploy without confirmation for aborting conflicting processes",
47+
util.GetShortOption(noStartOpt): "Do not start apps",
48+
util.GetShortOption(namespaceOpt): "(EXPERIMENTAL) Namespace for the MTA, applied on app names, app routes and service names",
49+
util.GetShortOption(applyNamespaceAppNamesOpt): "(EXPERIMENTAL) Apply namespace to application names: (true, false)",
50+
util.GetShortOption(applyNamespaceServiceNamesOpt): "(EXPERIMENTAL) Apply namespace to service names: (true, false)",
51+
util.GetShortOption(applyNamespaceAppRoutesOpt): "(EXPERIMENTAL) Apply namespace to application routes: (true, false)",
52+
util.GetShortOption(applyNamespaceAsSuffix): "(EXPERIMENTAL) Apply namespace as a suffix rather than a prefix: (true, false)",
53+
util.GetShortOption(deleteServicesOpt): "Recreate changed services / delete discontinued services",
54+
util.GetShortOption(deleteServiceKeysOpt): "Delete existing service keys and apply the new ones",
55+
util.GetShortOption(deleteServiceBrokersOpt): "Delete discontinued service brokers",
56+
util.GetShortOption(keepFilesOpt): "Keep files used for deployment",
57+
util.GetShortOption(noRestartSubscribedAppsOpt): "Do not restart subscribed apps, updated during the deployment",
58+
util.GetShortOption(noConfirmOpt): "Do not require confirmation for deleting the previously deployed MTA apps",
59+
util.GetShortOption(noFailOnMissingPermissionsOpt): "Do not fail on missing permissions for admin operations",
60+
util.GetShortOption(abortOnErrorOpt): "Auto-abort the process on any errors",
61+
util.GetShortOption(retriesOpt): "Retry the operation N times in case a non-content error occurs (default 3)",
62+
util.GetShortOption(skipIdleStart): "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",
63+
util.GetShortOption(stageTimeoutOpt): "Stage app timeout in seconds",
64+
util.GetShortOption(uploadTimeoutOpt): "Upload app timeout in seconds",
65+
util.GetShortOption(taskExecutionTimeoutOpt): "Task execution timeout in seconds",
66+
util.CombineFullAndShortParameters(startTimeoutOpt, timeoutOpt): "Start app timeout in seconds",
67+
util.GetShortOption(shouldBackupPreviousVersionOpt): "(EXPERIMENTAL) Backup previous version of applications, use new cli command \"rollback-mta\" to rollback to the previous version",
6768
},
6869
},
6970
}

0 commit comments

Comments
 (0)