diff --git a/control-plane-operator/controllers/hostedcontrolplane/oauth/deployment.go b/control-plane-operator/controllers/hostedcontrolplane/oauth/deployment.go index a27d84045f..b178f782a3 100644 --- a/control-plane-operator/controllers/hostedcontrolplane/oauth/deployment.go +++ b/control-plane-operator/controllers/hostedcontrolplane/oauth/deployment.go @@ -233,7 +233,7 @@ func buildOAuthContainerHTTPProxy(image string, proxyConfig *configv1.ProxySpec, return func(c *corev1.Container) { c.Image = image c.Command = []string{"/usr/bin/control-plane-operator", "konnectivity-https-proxy"} - c.Args = []string{"run", fmt.Sprintf("--serving-port=%d", httpKonnectivityProxyPort)} + c.Args = []string{"run", fmt.Sprintf("--serving-port=%d", httpKonnectivityProxyPort), "--connect-directly-to-cloud-apis"} if proxyConfig != nil { c.Args = append(c.Args, "--http-proxy", proxyConfig.HTTPProxy) c.Args = append(c.Args, "--https-proxy", proxyConfig.HTTPSProxy) diff --git a/control-plane-operator/controllers/hostedcontrolplane/oauth/testdata/zz_fixture_TestReconcileOauthDeploymentNoChanges.yaml b/control-plane-operator/controllers/hostedcontrolplane/oauth/testdata/zz_fixture_TestReconcileOauthDeploymentNoChanges.yaml index 4d8c240e4a..13517ee3e5 100644 --- a/control-plane-operator/controllers/hostedcontrolplane/oauth/testdata/zz_fixture_TestReconcileOauthDeploymentNoChanges.yaml +++ b/control-plane-operator/controllers/hostedcontrolplane/oauth/testdata/zz_fixture_TestReconcileOauthDeploymentNoChanges.yaml @@ -105,6 +105,7 @@ spec: - args: - run - --serving-port=8092 + - --connect-directly-to-cloud-apis command: - /usr/bin/control-plane-operator - konnectivity-https-proxy