From 5dea6237f246c0c28bce94ab1be4a51b7d357f53 Mon Sep 17 00:00:00 2001 From: Srinikitha Kondreddy Date: Mon, 30 Oct 2023 12:40:01 +0100 Subject: [PATCH] Add warning message when cf native builds uses bg deployment (#4646) * Add warning message when cf native builds uses bg deployment --------- Co-authored-by: Oliver Feldmann --- cmd/cloudFoundryDeploy.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cmd/cloudFoundryDeploy.go b/cmd/cloudFoundryDeploy.go index bdf79ce9e5..b757a2b961 100644 --- a/cmd/cloudFoundryDeploy.go +++ b/cmd/cloudFoundryDeploy.go @@ -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)