Skip to content

Commit

Permalink
Registry operator: Set proxy vars
Browse files Browse the repository at this point in the history
This operator has to communicate with the cloud provider, thus it needs
the management clusters proxy settings.
  • Loading branch information
alvaroaleman committed Aug 8, 2022
1 parent c5df260 commit aaf6be6
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import (
"github.com/openshift/hypershift/control-plane-operator/controllers/hostedcontrolplane/pki"
"github.com/openshift/hypershift/support/config"
"github.com/openshift/hypershift/support/metrics"
"github.com/openshift/hypershift/support/proxy"
"github.com/openshift/hypershift/support/util"
)

Expand Down Expand Up @@ -278,6 +279,7 @@ func buildMainContainer(image, registryImage, prunerImage, releaseVersion string
Value: "/tmp/azurestackcloud.json",
},
}
proxy.SetEnvVars(&c.Env)
c.VolumeMounts = volumeMounts.ContainerMounts(c.Name)
c.Ports = []corev1.ContainerPort{
{
Expand Down

0 comments on commit aaf6be6

Please sign in to comment.