You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[main] Multiple commands changed to allow canary steps (#3400)
* Fix error message for push command
Signed-off-by: João Pereira <[email protected]>
* Display current step in the canary deployment
Signed-off-by: João Pereira <[email protected]>
* Add --instance-steps to the restart command
Signed-off-by: João Pereira <[email protected]>
* Add flag --instance-steps to restage command
Signed-off-by: João Pereira <[email protected]>
* Add --instance-steps to rollback
Signed-off-by: João Pereira <[email protected]>
* Add --instance-steps to copy-source command
Signed-off-by: João Pereira <[email protected]>
* Fix rollback that was not setting the correct values on the deployment
Signed-off-by: João Pereira <[email protected]>
* Add min capi version check on instance steps commands
Signed-off-by: João Pereira <[email protected]>
* Fix pointer reference
* Add version to copy-source canary step test
* Update canary step version requirement
* Fix continue deployment test
* Fix CAPI versions in tests
* Fixes for canary integration tests
* Fix flakey canary test
* Add missing continue to copy-source canary test
---------
Signed-off-by: João Pereira <[email protected]>
Co-authored-by: Sam Gunaratne <[email protected]>
Co-authored-by: Sam Gunaratne <[email protected]>
Strategyflag.DeploymentStrategy`long:"strategy" description:"Deployment strategy can be canary, rolling or null"`
24
+
InstanceStepsstring`long:"instance-steps" description:"An array of percentage steps to deploy when using deployment strategy canary. (e.g. 20,40,60)"`
20
25
MaxInFlight*int`long:"max-in-flight" description:"Defines the maximum number of instances that will be actively being started. Only applies when --strategy flag is specified."`
21
26
NoWaitbool`long:"no-wait" description:"Exit when the first instance of the web process is healthy"`
22
27
NoRestartbool`long:"no-restart" description:"Do not restage the destination application"`
23
28
Organizationstring`short:"o" long:"organization" description:"Org that contains the destination application"`
24
29
Spacestring`short:"s" long:"space" description:"Space that contains the destination application"`
30
+
Strategy flag.DeploymentStrategy`long:"strategy" description:"Deployment strategy can be canary, rolling or null"`
envCFStagingTimeoutinterface{} `environmentName:"CF_STAGING_TIMEOUT" environmentDescription:"Max wait time for staging, in minutes" environmentDefault:"15"`
27
33
envCFStartupTimeoutinterface{} `environmentName:"CF_STARTUP_TIMEOUT" environmentDescription:"Max wait time for app instance startup, in minutes" environmentDefault:"5"`
Strategyflag.DeploymentStrategy`long:"strategy" description:"Deployment strategy can be canary, rolling or null."`
23
+
InstanceStepsstring`long:"instance-steps" description:"An array of percentage steps to deploy when using deployment strategy canary. (e.g. 20,40,60)"`
19
24
MaxInFlight*int`long:"max-in-flight" description:"Defines the maximum number of instances that will be actively being restaged. Only applies when --strategy flag is specified."`
20
25
NoWaitbool`long:"no-wait" description:"Exit when the first instance of the web process is healthy"`
26
+
Strategy flag.DeploymentStrategy`long:"strategy" description:"Deployment strategy can be canary, rolling or null."`
21
27
usageinterface{} `usage:"CF_NAME restage APP_NAME\n\n This command will cause downtime unless you use '--strategy' flag.\n\nEXAMPLES:\n CF_NAME restage APP_NAME\n CF_NAME restage APP_NAME --strategy rolling\n CF_NAME restage APP_NAME --strategy canary --no-wait"`
envCFStagingTimeoutinterface{} `environmentName:"CF_STAGING_TIMEOUT" environmentDescription:"Max wait time for staging, in minutes" environmentDefault:"15"`
0 commit comments