diff --git a/controllers/usernamespace/controller.go b/controllers/usernamespace/controller.go index d17c9d683..1aba2be57 100644 --- a/controllers/usernamespace/controller.go +++ b/controllers/usernamespace/controller.go @@ -472,6 +472,7 @@ func (r *CheUserNamespaceReconciler) reconcileGitTlsCertificate(ctx context.Cont Namespace: targetNs, Labels: defaults.AddStandardLabelsForComponent(checluster, userSettingsComponentLabelValue, map[string]string{ constants.DevWorkspaceGitTLSLabel: "true", + constants.DevWorkspaceMountLabel: "true", constants.DevWorkspaceWatchConfigMapLabel: "true", }), }, diff --git a/controllers/usernamespace/controller_test.go b/controllers/usernamespace/controller_test.go index daf44a6f9..159b57815 100644 --- a/controllers/usernamespace/controller_test.go +++ b/controllers/usernamespace/controller_test.go @@ -384,6 +384,7 @@ func TestCreatesDataInNamespace(t *testing.T) { gitTlsConfig := corev1.ConfigMap{} assert.NoError(t, cl.Get(ctx, client.ObjectKey{Name: "che-git-tls-creds", Namespace: namespace.GetName()}, &gitTlsConfig)) assert.Equal(t, "true", gitTlsConfig.Labels[constants.DevWorkspaceGitTLSLabel]) + assert.Equal(t, "true", gitTlsConfig.Labels[constants.DevWorkspaceMountLabel]) assert.Equal(t, "true", gitTlsConfig.Labels[constants.DevWorkspaceWatchConfigMapLabel]) assert.Equal(t, "the.host.of.git", gitTlsConfig.Data["host"]) assert.Equal(t, "the public certificate of the.host.of.git", gitTlsConfig.Data["certificate"])