Skip to content

Commit 4cabb59

Browse files
authored
chore: Mount proxy env variables to dashboard container (#1950)
Signed-off-by: Anatolii Bazko <[email protected]>
1 parent e58ad4a commit 4cabb59

File tree

1 file changed

+24
-1
lines changed

1 file changed

+24
-1
lines changed

pkg/deploy/dashboard/deployment_dashboard.go

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,30 @@ func (d *DashboardReconciler) getDashboardDeploymentSpec(ctx *chetypes.DeployCon
5555
// They are used to replace images with tags on images with digests.
5656
envVars := utils.GetGetArchitectureDependentEnvsByRegExp("^RELATED_IMAGE_sample_.*$")
5757
envVars = append(envVars,
58-
// todo handle HTTP_PROXY related env vars
58+
corev1.EnvVar{
59+
Name: "http_proxy",
60+
Value: ctx.Proxy.HttpProxy,
61+
},
62+
corev1.EnvVar{
63+
Name: "https_proxy",
64+
Value: ctx.Proxy.HttpsProxy,
65+
},
66+
corev1.EnvVar{
67+
Name: "no_proxy",
68+
Value: ctx.Proxy.NoProxy,
69+
},
70+
corev1.EnvVar{
71+
Name: "HTTP_PROXY",
72+
Value: ctx.Proxy.HttpProxy,
73+
},
74+
corev1.EnvVar{
75+
Name: "HTTPS_PROXY",
76+
Value: ctx.Proxy.HttpsProxy,
77+
},
78+
corev1.EnvVar{
79+
Name: "NO_PROXY",
80+
Value: ctx.Proxy.NoProxy,
81+
},
5982
// CHE_HOST is here for backward compatibility. Replaced with CHE_URL
6083
corev1.EnvVar{
6184
Name: "CHE_HOST",

0 commit comments

Comments
 (0)