-
Notifications
You must be signed in to change notification settings - Fork 5.1k
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
v1.2.0-rc2 does not retrieve http(s) based git repository behind the proxy #2243
Comments
@jannfis FYI |
Thank you @mitsutaka, please let us know how you get on and if you need any assistance. |
Oops, how could I miss this use-case. Thanks for the report and the offer for fixing it, @mitsutaka. As @alexec said, let us know if we can assist in any way. That being said, I'll not be able to respond the next 2 weeks most likely tho due to private reasons. I guess we should also consider HTTP proxy connections for end-to-end testing as well, once this feature is implemented. |
Fixed in v1.3. @alexmt should we backport? |
Sure, let's backport. The 1.2.0 is released already but we can create patch release even if this is the only change. I suggest to wait till Monday in case there are more hot-fixes and then release 1.2.1 |
Cherry-picked to v1.2. |
Describe the bug
My kubernetes cluster is behind the proxy.
argocd-repo-server
needs to setHTTP_PROXY
,HTTPS_PROXY
andNO_PROXY
. After upgrading argocd image tov1.2.0-rc2
and apply manifests. All argocd apps' condition returnsComparisonError
. an error log is posted at the bottom.To Reproduce
argocd-repo-server
like this manifest which includes proxy environment variables:Application
resources.argocd app sync APP
.I already make sure
curl https://github.com/cybozu-go/neco-apps.git/info/refs?service=git-upload-pack
with proxy works in theargocd-repo-server
pod.Example
It affects any apps.
Expected behavior
argocd-repo-server
should retrieve http(s) based git repository behind the proxy.Screenshots
If applicable, add screenshots to help explain your problem.
Version
Logs
argocd-repo-server
Have you thought about contributing a fix yourself?
I am going to make a PR. I found
GetRepoHTTPClient()
in the commit 5953080#diff-a78af8f9e3e850815ccda822f9b46922L96-R96 used plainhttp.Client{}
instead ofgithttp.NewClient()
. It seems that drops reading proxy address from the environment variable.The text was updated successfully, but these errors were encountered: