Skip to content

Commit f84785f

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

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

controllers/workspace/provision/deployment.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -215,14 +215,14 @@ func getSpecDeployment(
215215
Namespace: workspace.Namespace,
216216
Labels: map[string]string{
217217
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{
224225
constants.DevWorkspaceIDLabel: workspace.Status.DevWorkspaceId,
225-
constants.DevWorkspaceNameLabel: workspace.Name,
226226
},
227227
},
228228
Strategy: appsv1.DeploymentStrategy{

0 commit comments

Comments
 (0)