Unverified Commit b0d329d0 authored by sixther's avatar sixther Committed by GitHub
Browse files

feat: modify blue_green_deploy default value is open (#4794)

parent 09c523d9
Showing with 1 addition and 1 deletion
+1 -1
...@@ -607,7 +607,7 @@ func (k *Kubernetes) newDeployment(service *apistructs.Service, serviceGroup *ap ...@@ -607,7 +607,7 @@ func (k *Kubernetes) newDeployment(service *apistructs.Service, serviceGroup *ap
} }
deployment.Spec.Template.Spec.ImagePullSecrets = imagePullSecrets deployment.Spec.Template.Spec.ImagePullSecrets = imagePullSecrets
if v := k.options["FORCE_BLUE_GREEN_DEPLOY"]; v != "true" && if v := k.options["FORCE_BLUE_GREEN_DEPLOY"]; v == "false" &&
(strutil.ToUpper(service.Env[DiceWorkSpace]) == apistructs.DevWorkspace.String() || (strutil.ToUpper(service.Env[DiceWorkSpace]) == apistructs.DevWorkspace.String() ||
strutil.ToUpper(service.Env[DiceWorkSpace]) == apistructs.TestWorkspace.String()) { strutil.ToUpper(service.Env[DiceWorkSpace]) == apistructs.TestWorkspace.String()) {
deployment.Spec.Strategy = appsv1.DeploymentStrategy{Type: "Recreate"} deployment.Spec.Strategy = appsv1.DeploymentStrategy{Type: "Recreate"}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment