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

feat: use HTTP_PROXY for registry endpoint #300

Merged
merged 1 commit into from
Jan 9, 2022

Conversation

derdanne
Copy link
Contributor

use HTTP_PROXY in transport object for registry endpoint if defined in environment

@CLAassistant
Copy link

CLAassistant commented Nov 17, 2021

CLA assistant check
All committers have signed the CLA.

Copy link
Contributor

@jannfis jannfis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks a lot for your contribution, @derdanne !

I think it would be easier to use http.ProxyFromEnvironment method for setting the Transport's proxy configuration, instead of rolling up our own logic for getting the environment. This would also have the benefit that https_proxy and no_proxy would be considered as well.

Reference can be found at: https://pkg.go.dev/net/http#ProxyFromEnvironment

@derdanne
Copy link
Contributor Author

derdanne commented Jan 8, 2022

Hey thanks for the feedback. I have switched to the http.ProxyFromEnvironment method.

Copy link
Contributor

@jannfis jannfis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Thank you for this contribution, @derdanne !

@jannfis jannfis changed the title use HTTP_PROXY for registry endpoint feat: use HTTP_PROXY for registry endpoint Jan 9, 2022
@jannfis jannfis merged commit 111fbe0 into argoproj-labs:master Jan 9, 2022
sribiere-jellysmack pushed a commit to sribiere-jellysmack/argocd-image-updater that referenced this pull request Aug 13, 2024
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.

3 participants