Skip to content

Commit

Permalink
chore: Mount proxy env variables to dashboard container
Browse files Browse the repository at this point in the history
Signed-off-by: Anatolii Bazko <abazko@redhat.com>
  • Loading branch information
tolusha committed Jan 7, 2025
1 parent 5a4341e commit a9c90d6
Showing 1 changed file with 24 additions and 1 deletion.
25 changes: 24 additions & 1 deletion pkg/deploy/dashboard/deployment_dashboard.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,30 @@ func (d *DashboardReconciler) getDashboardDeploymentSpec(ctx *chetypes.DeployCon
// They are used to replace images with tags on images with digests.
envVars := utils.GetGetArchitectureDependentEnvsByRegExp("^RELATED_IMAGE_sample_.*$")
envVars = append(envVars,
// todo handle HTTP_PROXY related env vars
corev1.EnvVar{
Name: "http_proxy",
Value: ctx.Proxy.HttpProxy,
},
corev1.EnvVar{
Name: "https_proxy",
Value: ctx.Proxy.HttpsProxy,
},
corev1.EnvVar{
Name: "no_proxy",
Value: ctx.Proxy.NoProxy,
},
corev1.EnvVar{
Name: "HTTP_PROXY",
Value: ctx.Proxy.HttpProxy,
},
corev1.EnvVar{
Name: "HTTPS_PROXY",
Value: ctx.Proxy.HttpsProxy,
},
corev1.EnvVar{
Name: "NO_PROXY",
Value: ctx.Proxy.NoProxy,
},
// CHE_HOST is here for backward compatibility. Replaced with CHE_URL
corev1.EnvVar{
Name: "CHE_HOST",
Expand Down

0 comments on commit a9c90d6

Please sign in to comment.