Skip to content

Commit

Permalink
Add warning message when cf native builds uses bg deployment (#4646)
Browse files Browse the repository at this point in the history
* Add warning message when cf native builds uses bg deployment

---------

Co-authored-by: Oliver Feldmann <[email protected]>
  • Loading branch information
srinikitha09 and o-liver authored Oct 30, 2023
1 parent daf159a commit 5dea623
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cmd/cloudFoundryDeploy.go
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,11 @@ func handleCFNativeDeployment(config *cloudFoundryDeployOptions, command command
// deploy command will be provided by the prepare functions below

if deployType == "blue-green" {
log.Entry().Warn("[WARN] Blue-green deployment type is deprecated for cf native builds " +
"and will be completely removed by 01.02.2024" +
"Instead set parameter `cfNativeDeployParameters: '--strategy rolling'`. " +
"Please refer to the Cloud Foundry documentation for further information: " +
"https://docs.cloudfoundry.org/devguide/deploy-apps/rolling-deploy.html")
deployCommand, deployOptions, smokeTestScript, err = prepareBlueGreenCfNativeDeploy(config)
if err != nil {
return errors.Wrapf(err, "Cannot prepare cf native deployment. DeployType '%s'", deployType)
Expand Down

0 comments on commit 5dea623

Please sign in to comment.