Skip to content

Commit 0628c5e

Browse files
authored
[installer] Adding proxy setting env vars to registry facade (#19374)
1 parent 38681eb commit 0628c5e

File tree

1 file changed

+18
-0
lines changed
  • install/installer/pkg/components/registry-facade

1 file changed

+18
-0
lines changed

install/installer/pkg/components/registry-facade/daemonset.go

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,24 @@ func daemonset(ctx *common.RenderContext) ([]runtime.Object, error) {
126126
}
127127
}
128128

129+
proxyConfig := ucfg.WebApp.ProxySettings
130+
if proxyConfig != nil {
131+
envvars = append(envvars, []corev1.EnvVar{
132+
{
133+
Name: "HTTP_PROXY",
134+
Value: proxyConfig.HttpProxy,
135+
},
136+
{
137+
Name: "HTTPS_PROXY",
138+
Value: proxyConfig.HttpsProxy,
139+
},
140+
{
141+
Name: "NO_PROXY",
142+
Value: proxyConfig.NoProxy,
143+
},
144+
}...)
145+
}
146+
129147
return nil
130148
})
131149
if err != nil {

0 commit comments

Comments
 (0)