Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions install/installer/pkg/components/openvsx-proxy/statefulset.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,29 @@ func statefulset(ctx *common.RenderContext) ([]runtime.Object, error) {

const redisContainerName = "redis"

var proxyEnvVars []v1.EnvVar
if ctx.Config.Experimental != nil && ctx.Config.Experimental.WebApp != nil {
proxyConfig := ctx.Config.Experimental.WebApp.ProxySettings
if proxyConfig != nil {
proxyEnvVars = []v1.EnvVar{
{
Name: "HTTP_PROXY",
Value: proxyConfig.HttpProxy,
},
{
Name: "HTTPS_PROXY",
Value: proxyConfig.HttpsProxy,
},
{
Name: "NO_PROXY",
Value: proxyConfig.HttpsProxy,
},
}

}

}

return []runtime.Object{&appsv1.StatefulSet{
TypeMeta: common.TypeMetaStatefulSet,
ObjectMeta: metav1.ObjectMeta{
Expand Down Expand Up @@ -136,6 +159,7 @@ func statefulset(ctx *common.RenderContext) ([]runtime.Object, error) {
Env: common.CustomizeEnvvar(ctx, Component, common.MergeEnv(
common.DefaultEnv(&ctx.Config),
common.ConfigcatEnv(ctx),
proxyEnvVars,
)),
}, {
Name: redisContainerName,
Expand Down
10 changes: 10 additions & 0 deletions install/installer/pkg/config/v1/experimental/experimental.go
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,15 @@ type WebAppConfig struct {
SpiceDB *SpiceDBConfig `json:"spicedb,omitempty"`
CertmanagerNamespaceOverride string `json:"certmanagerNamespaceOverride,omitempty"`
Redis *RedisConfig `json:"redis"`

// ProxySettings is used if the gitpod cell uses some proxy for connectivity
ProxySettings *ProxySettings `json:"proxySettings"`
}

type ProxySettings struct {
HttpProxy string `json:"http_proxy"`
HttpsProxy string `json:"https_proxy"`
NoProxy string `json:"no_proxy"`
}

type WorkspaceDefaults struct {
Expand Down Expand Up @@ -342,6 +351,7 @@ type IDEMetricsConfig struct {
// @deprecated
type VSXProxyConfig struct {
ServiceAnnotations map[string]string `json:"serviceAnnotations"`
ExtraEnvVars map[string]string `json:"extraEnvVars"`
}

type TracingSampleType string
Expand Down