File tree Expand file tree Collapse file tree 2 files changed +21
-2
lines changed
install/installer/pkg/components Expand file tree Collapse file tree 2 files changed +21
-2
lines changed Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ import (
17
17
"github.com/gitpod-io/gitpod/installer/pkg/components/spicedb"
18
18
"github.com/gitpod-io/gitpod/installer/pkg/components/usage"
19
19
wsmanager "github.com/gitpod-io/gitpod/installer/pkg/components/ws-manager"
20
+ wsmanagermk2 "github.com/gitpod-io/gitpod/installer/pkg/components/ws-manager-mk2"
20
21
21
22
"github.com/gitpod-io/gitpod/installer/pkg/common"
22
23
wsmanagerbridge "github.com/gitpod-io/gitpod/installer/pkg/components/ws-manager-bridge"
@@ -240,11 +241,19 @@ func deployment(ctx *common.RenderContext) ([]runtime.Object, error) {
240
241
241
242
addWsManagerTls := common .WithLocalWsManager (ctx )
242
243
if addWsManagerTls {
244
+ secretName := wsmanager .TLSSecretNameClient
245
+ _ = ctx .WithExperimental (func (cfg * experimental.Config ) error {
246
+ if cfg .Workspace != nil && cfg .Workspace .UseWsmanagerMk2 {
247
+ secretName = wsmanagermk2 .TLSSecretNameClient
248
+ }
249
+ return nil
250
+ })
251
+
243
252
volumes = append (volumes , corev1.Volume {
244
253
Name : "ws-manager-client-tls-certs" ,
245
254
VolumeSource : corev1.VolumeSource {
246
255
Secret : & corev1.SecretVolumeSource {
247
- SecretName : wsmanager . TLSSecretNameClient ,
256
+ SecretName : secretName ,
248
257
},
249
258
},
250
259
})
Original file line number Diff line number Diff line change @@ -11,6 +11,8 @@ import (
11
11
"github.com/gitpod-io/gitpod/installer/pkg/cluster"
12
12
"github.com/gitpod-io/gitpod/installer/pkg/common"
13
13
wsmanager "github.com/gitpod-io/gitpod/installer/pkg/components/ws-manager"
14
+ wsmanagermk2 "github.com/gitpod-io/gitpod/installer/pkg/components/ws-manager-mk2"
15
+ "github.com/gitpod-io/gitpod/installer/pkg/config/v1/experimental"
14
16
15
17
appsv1 "k8s.io/api/apps/v1"
16
18
corev1 "k8s.io/api/core/v1"
@@ -35,11 +37,19 @@ func deployment(ctx *common.RenderContext) ([]runtime.Object, error) {
35
37
36
38
addWsManagerTls := common .WithLocalWsManager (ctx )
37
39
if addWsManagerTls {
40
+ secretName := wsmanager .TLSSecretNameClient
41
+ _ = ctx .WithExperimental (func (cfg * experimental.Config ) error {
42
+ if cfg .Workspace != nil && cfg .Workspace .UseWsmanagerMk2 {
43
+ secretName = wsmanagermk2 .TLSSecretNameClient
44
+ }
45
+ return nil
46
+ })
47
+
38
48
volumes = append (volumes , corev1.Volume {
39
49
Name : "ws-manager-client-tls-certs" ,
40
50
VolumeSource : corev1.VolumeSource {
41
51
Secret : & corev1.SecretVolumeSource {
42
- SecretName : wsmanager . TLSSecretNameClient ,
52
+ SecretName : secretName ,
43
53
},
44
54
},
45
55
})
You can’t perform that action at this time.
0 commit comments