Skip to content

Commit 6150cc4

Browse files
authored
[installer] Check if experimental config is nil (#19375)
1 parent 8980210 commit 6150cc4

File tree

1 file changed

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

1 file changed

+18
-16
lines changed

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

Lines changed: 18 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -126,22 +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-
}...)
129+
if ucfg.WebApp != nil {
130+
proxyConfig := ucfg.WebApp.ProxySettings
131+
if proxyConfig != nil {
132+
envvars = append(envvars, []corev1.EnvVar{
133+
{
134+
Name: "HTTP_PROXY",
135+
Value: proxyConfig.HttpProxy,
136+
},
137+
{
138+
Name: "HTTPS_PROXY",
139+
Value: proxyConfig.HttpsProxy,
140+
},
141+
{
142+
Name: "NO_PROXY",
143+
Value: proxyConfig.NoProxy,
144+
},
145+
}...)
146+
}
145147
}
146148

147149
return nil

0 commit comments

Comments
 (0)