File tree Expand file tree Collapse file tree 1 file changed +18
-16
lines changed
install/installer/pkg/components/registry-facade Expand file tree Collapse file tree 1 file changed +18
-16
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments