Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
小 白蛋
Erda
Commits
b0d329d0
Unverified
Commit
b0d329d0
authored
3 years ago
by
sixther
Committed by
GitHub
3 years ago
Browse files
Options
Download
Email Patches
Plain Diff
feat: modify blue_green_deploy default value is open (#4794)
parent
09c523d9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
modules/orchestrator/scheduler/executor/plugins/k8s/deployment.go
+1
-1
...orchestrator/scheduler/executor/plugins/k8s/deployment.go
with
1 addition
and
1 deletion
+1
-1
modules/orchestrator/scheduler/executor/plugins/k8s/deployment.go
+
1
-
1
View file @
b0d329d0
...
@@ -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
!
=
"
tru
e"
&&
if
v
:=
k
.
options
[
"FORCE_BLUE_GREEN_DEPLOY"
];
v
=
=
"
fals
e"
&&
(
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"
}
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment