Skip to content

Commit

Permalink
Fix usage of verify property from clouds.yaml (kubernetes-sigs#361)
Browse files Browse the repository at this point in the history
  • Loading branch information
sbueringer authored and pierreprinetti committed Apr 22, 2024
1 parent 5b8ada6 commit 3ab9f5f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/cloud/openstack/clients/machineservice.go
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ func NewInstanceServiceFromCloud(cloud clientconfig.Cloud, cacert []byte) (*Inst
config.RootCAs = caCertPool
}

config.InsecureSkipVerify = *cloudFromYaml.Verify
config.InsecureSkipVerify = !*cloudFromYaml.Verify
transport := &http.Transport{Proxy: http.ProxyFromEnvironment, TLSClientConfig: config}
provider.HTTPClient.Transport = transport

Expand Down
2 changes: 1 addition & 1 deletion pkg/cloud/openstack/cluster/actuator.go
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ func (a *Actuator) getNetworkClient(cluster *clusterv1.Cluster) (*gophercloud.Se
config.RootCAs = caCertPool
}

config.InsecureSkipVerify = *cloudFromYaml.Verify
config.InsecureSkipVerify = !*cloudFromYaml.Verify
transport := &http.Transport{Proxy: http.ProxyFromEnvironment, TLSClientConfig: config}
provider.HTTPClient.Transport = transport

Expand Down

0 comments on commit 3ab9f5f

Please sign in to comment.