Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revert "enable proxy for remaining clients (#152)" #165

Merged
merged 2 commits into from
Mar 22, 2024

Conversation

aidy
Copy link
Contributor

@aidy aidy commented Mar 7, 2024

This reverts commit 293835e.

It's unnecessary to specify ProxyFromEnvironment in these cases. It was required for the selfhosted client, as we are overriding the default Transport object.

In these cases, Transport are nil, and so should default to DefaultTransport: https://cs.opensource.google/go/go/+/refs/tags/go1.22.0:src/net/http/client.go;l=60

This already has ProxyFromEnvironment as the default behaviour: https://github.com/golang/go/blob/master/src/net/http/transport.go#L44

As this is unnecessary, it's better to leave it undefined to ensure that the other characteristics of DefaultTransport are retained.

@aidy aidy requested a review from davidcollom as a code owner March 7, 2024 09:27
This reverts commit 293835e.

It's unnecessary to specify ProxyFromEnvironment in these cases.
It was required for the selfhosted client, as we are overriding the
default Transport object.

In these cases, Transport are nil, and so should default to
DefaultTransport: https://cs.opensource.google/go/go/+/refs/tags/go1.22.0:src/net/http/client.go;l=60

This already has ProxyFromEnvironment as the default behaviour:
https://github.com/golang/go/blob/master/src/net/http/transport.go#L44

As this is unnecessary, it's better to leave it undefined to ensure that
the other characteristics of DefaultTransport are retained.
@davidcollom davidcollom merged commit 95cfa87 into jetstack:main Mar 22, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants