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 (
18
18
"github.com/gitpod-io/gitpod/common-go/baseserver"
19
19
"github.com/gitpod-io/gitpod/installer/pkg/cluster"
20
20
"github.com/gitpod-io/gitpod/installer/pkg/common"
21
+ "github.com/gitpod-io/gitpod/installer/pkg/config/v1/experimental"
21
22
)
22
23
23
24
func statefulset (ctx * common.RenderContext ) ([]runtime.Object , error ) {
@@ -67,8 +68,9 @@ func statefulset(ctx *common.RenderContext) ([]runtime.Object, error) {
67
68
const redisContainerName = "redis"
68
69
69
70
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
72
74
if proxyConfig != nil {
73
75
proxyEnvVars = []v1.EnvVar {
74
76
{
@@ -84,10 +86,9 @@ func statefulset(ctx *common.RenderContext) ([]runtime.Object, error) {
84
86
Value : proxyConfig .NoProxy ,
85
87
},
86
88
}
87
-
88
89
}
89
-
90
- }
90
+ return nil
91
+ })
91
92
92
93
return []runtime.Object {& appsv1.StatefulSet {
93
94
TypeMeta : common .TypeMetaStatefulSet ,
You can’t perform that action at this time.
0 commit comments