Skip to content

Commit

Permalink
Merge pull request #568 from openshift-cherrypick-robot/cherry-pick-5…
Browse files Browse the repository at this point in the history
…65-to-release-4.7

Bug 1936093: Canary: Use cluster-wide proxy for canary client
  • Loading branch information
openshift-merge-robot committed Mar 13, 2021
2 parents 7d81a58 + 4e8399a commit 196b097
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/operator/controller/canary/http.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,9 @@ func probeRouteEndpoint(route *routev1.Route) error {
// TODO: Add the router's certificate to the HTTP client
// so we can enable TLS verification.
Transport: &http.Transport{
// Use the cluster-wide proxy if it is available in the
// pod's environment.
Proxy: http.ProxyFromEnvironment,
TLSClientConfig: &tls.Config{InsecureSkipVerify: true},
},
}
Expand Down

0 comments on commit 196b097

Please sign in to comment.