Skip to content

Commit

Permalink
[installer] Check if experimental config is nil (gitpod-io#19375)
Browse files Browse the repository at this point in the history
  • Loading branch information
nandajavarma authored Jan 31, 2024
1 parent 8980210 commit 6150cc4
Showing 1 changed file with 18 additions and 16 deletions.
34 changes: 18 additions & 16 deletions install/installer/pkg/components/registry-facade/daemonset.go
Original file line number Diff line number Diff line change
Expand Up @@ -126,22 +126,24 @@ func daemonset(ctx *common.RenderContext) ([]runtime.Object, error) {
}
}

proxyConfig := ucfg.WebApp.ProxySettings
if proxyConfig != nil {
envvars = append(envvars, []corev1.EnvVar{
{
Name: "HTTP_PROXY",
Value: proxyConfig.HttpProxy,
},
{
Name: "HTTPS_PROXY",
Value: proxyConfig.HttpsProxy,
},
{
Name: "NO_PROXY",
Value: proxyConfig.NoProxy,
},
}...)
if ucfg.WebApp != nil {
proxyConfig := ucfg.WebApp.ProxySettings
if proxyConfig != nil {
envvars = append(envvars, []corev1.EnvVar{
{
Name: "HTTP_PROXY",
Value: proxyConfig.HttpProxy,
},
{
Name: "HTTPS_PROXY",
Value: proxyConfig.HttpsProxy,
},
{
Name: "NO_PROXY",
Value: proxyConfig.NoProxy,
},
}...)
}
}

return nil
Expand Down

0 comments on commit 6150cc4

Please sign in to comment.