Skip to content

Commit f47fc6f

Browse files
committed
refactor: use deployment strategy replace for replaced pods
1 parent ada1921 commit f47fc6f

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

pkg/devspace/services/podreplace/builder.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,9 @@ func buildDeployment(ctx devspacecontext.Context, name string, target runtime.Ob
160160
deployment.Spec.Selector.MatchExpressions = nil
161161
}
162162
deployment.Spec.Selector.MatchLabels[selector.ReplacedLabel] = "true"
163+
deployment.Spec.Strategy = appsv1.DeploymentStrategy{
164+
Type: appsv1.RecreateDeploymentStrategyType,
165+
}
163166

164167
// make sure labels etc are there
165168
if ctx.Log().GetLevel() == logrus.DebugLevel {

0 commit comments

Comments
 (0)