Skip to content

Commit 38681eb

Browse files
authored
[installer] Use experimental config properly for openvsx-proxy (#19368)
1 parent f0457a8 commit 38681eb

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

install/installer/pkg/components/openvsx-proxy/statefulset.go

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ import (
1818
"github.com/gitpod-io/gitpod/common-go/baseserver"
1919
"github.com/gitpod-io/gitpod/installer/pkg/cluster"
2020
"github.com/gitpod-io/gitpod/installer/pkg/common"
21+
"github.com/gitpod-io/gitpod/installer/pkg/config/v1/experimental"
2122
)
2223

2324
func statefulset(ctx *common.RenderContext) ([]runtime.Object, error) {
@@ -67,8 +68,9 @@ func statefulset(ctx *common.RenderContext) ([]runtime.Object, error) {
6768
const redisContainerName = "redis"
6869

6970
var proxyEnvVars []v1.EnvVar
70-
if ctx.Config.Experimental != nil && ctx.Config.Experimental.WebApp != nil {
71-
proxyConfig := ctx.Config.Experimental.WebApp.ProxySettings
71+
72+
_ = ctx.WithExperimental(func(cfg *experimental.Config) error {
73+
proxyConfig := cfg.WebApp.ProxySettings
7274
if proxyConfig != nil {
7375
proxyEnvVars = []v1.EnvVar{
7476
{
@@ -84,10 +86,9 @@ func statefulset(ctx *common.RenderContext) ([]runtime.Object, error) {
8486
Value: proxyConfig.NoProxy,
8587
},
8688
}
87-
8889
}
89-
90-
}
90+
return nil
91+
})
9192

9293
return []runtime.Object{&appsv1.StatefulSet{
9394
TypeMeta: common.TypeMetaStatefulSet,

0 commit comments

Comments
 (0)