The git certificate needs to be labeled as mounted to workspace. (#1375)
parent
a269da210b
commit
dfcfc3efa7
|
|
@ -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",
|
||||
}),
|
||||
},
|
||||
|
|
|
|||
|
|
@ -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"])
|
||||
|
|
|
|||
Loading…
Reference in New Issue