fixing http/s proxy handling for openshift provider#96
Conversation
|
Hi @patlachance. Thanks for your PR. I'm waiting for a openshift member to verify that this patch is reasonable to test. If it is, they should reply with I understand the commands that are listed here. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
|
/ok-to-test |
| return err | ||
| } | ||
| p.Client.Transport = &http.Transport{ | ||
| Proxy: http.ProxyFromEnvironment, |
There was a problem hiding this comment.
We should modify the transport for this outside of the setCA function.
There was a problem hiding this comment.
http_proxy and https_proxy environment variables are handled by http.DefaultTransport. This function is used to set custom CA on the transport but IMO it shouldn't discard other http.DefaultTransport default properties. But this is what is does since we need to change it later so it handle proxy env variables again.
I couldn't find a way to extend the p.client.transport outside this function without having to define the custom CA as well in the new function.
Any idea how to do it?
|
@openshift/sig-auth |
|
@patlachance please modify your patch to set the transport proxy outside of setCA() (after it's called in LoadDefaults()). That's my only feedback and then we will be OK to merge. |
|
@mrogers950 please see comment on your review. Don't know how to do it without managing custom CA at the same time. |
|
@patlachance sorry for the delay, I see what you're saying about setting the transport here. If you can also change the function name to setCAandTransportProxy or similar, that would be acceptable, just to make it clear that the function is doing both of these things. |
|
@mrogers950 ok I’ll do it over the weekend. |
|
/test all |
|
@patlachance I'm still waiting on your fixup. I'd be willing to open a separate PR and push the fix through myself if you have not had the time to return to this, just let me know. |
df54b51 to
ed457d2
Compare
ed457d2 to
70cab08
Compare
|
@mrogers950 sorry for the delay. Done now! |
|
@patlachance: Cannot trigger testing until a trusted user reviews the PR and leaves an DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
|
@patlachance looks good, thank you for your contribution! |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: mrogers950, patlachance The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
/ok-to-test |
|
/retest Please review the full test history for this PR and help us cut down flakes. |
Fixes #71