Skip to content

Commit a4659ef

Browse files
committed
Do not propagate workspace name to deployment to avoid deployment recreation
1 parent 5a17357 commit a4659ef

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

controllers/workspace/provision/deployment.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -214,15 +214,15 @@ func getSpecDeployment(
214214
Name: common.DeploymentName(workspace.Status.DevWorkspaceId),
215215
Namespace: workspace.Namespace,
216216
Labels: map[string]string{
217-
constants.DevWorkspaceIDLabel: workspace.Status.DevWorkspaceId,
217+
constants.DevWorkspaceIDLabel: workspace.Status.DevWorkspaceId,
218+
constants.DevWorkspaceNameLabel: workspace.Name,
218219
},
219220
},
220221
Spec: appsv1.DeploymentSpec{
221222
Replicas: &replicas,
222223
Selector: &metav1.LabelSelector{
223224
MatchLabels: map[string]string{
224-
constants.DevWorkspaceIDLabel: workspace.Status.DevWorkspaceId,
225-
constants.DevWorkspaceNameLabel: workspace.Name,
225+
constants.DevWorkspaceIDLabel: workspace.Status.DevWorkspaceId,
226226
},
227227
},
228228
Strategy: appsv1.DeploymentStrategy{

0 commit comments

Comments
 (0)