From 197cc7e66f7d2bd661568394bc7c7448d125aaeb Mon Sep 17 00:00:00 2001 From: Emilio Garcia Date: Tue, 10 Aug 2021 16:31:03 -0400 Subject: [PATCH] Adds Proxy to provider client http transport This allows the provider client to be able to reach the proxy server, and the openstack endpoints in a disconnected proxy environment. --- pkg/cloud/openstack/clients/utils.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/cloud/openstack/clients/utils.go b/pkg/cloud/openstack/clients/utils.go index 2976a7e197..9cced14759 100644 --- a/pkg/cloud/openstack/clients/utils.go +++ b/pkg/cloud/openstack/clients/utils.go @@ -92,6 +92,7 @@ func GetProviderClient(cloud clientconfig.Cloud, cert []byte) (*gophercloud.Prov TLSClientConfig: &tls.Config{ RootCAs: certPool, }, + Proxy: http.ProxyFromEnvironment, }, } provider.HTTPClient = client