File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed
install/installer/pkg/components/openvsx-proxy Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff 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
2324func 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 ,
You can’t perform that action at this time.
0 commit comments