-
Notifications
You must be signed in to change notification settings - Fork 191
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
docs: Add git proxy support docs #547
Conversation
01d547b
to
14b683e
Compare
| 'libgit2' | false | false | true | | ||
| --- | --- | --- | --- | | ||
| 'go-git' | true | true | false | | ||
| 'libgit2' | false | false | true | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unrelated change. I used https://github.com/godlygeek/tabular to automatically format the table.
I can undo it and keep it simple if it'd be easier to maintain.
@darkowlzz To help readers applying a proxy to their Flux installation, it might be a good idea to provide an example. apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- gotk-components.yaml
- gotk-sync.yaml
patches:
- patch: |
- op: add
path: /spec/template/spec/containers/0/env/-
value:
name: HTTPS_PROXY
value: http://x.x.x.x:yyyy
- op: add
path: /spec/template/spec/containers/0/env/-
value:
name: NO_PROXY
value: localhost,.local,.local.
target:
kind: Deployment
labelSelector: app.kubernetes.io/part-of=flux
namespace: flux-system Note that those environment variables are applied to all Flux controllers and not just source-controller. As for current known issues related to source-controller, I think it's definitely worth mentioning the CAFile/custom Transport issue: you cannot use a proxy at the same time as HTTPS self-signed certificates because of an implementation limitation in go-git (but it should work fine when using libgit2 explicitly). I'm not sure if it's worth mentioning the caching issue we ran into while using go-git. |
14b683e
to
c74531c
Compare
@au2001 Thanks. Self-signed cert issue with go-git is an important thing to note. Since this is an API doc, it'd be better to not have examples of adding env vars here. But thanks for sharing the example here. Would be useful for others if they look for it. The caching issue happens only during the lifetime of a go program. We saw that it wasn't an issue when running the tests separately. So, I don't think we need to mention anything about it, also considering that this will run in pods, as you mentioned. |
Signed-off-by: Sunny <[email protected]>
c74531c
to
017207d
Compare
@darkowlzz Alright, fine with me. |
#524 added support for git proxy in libgit2. We discovered various things that doesn't work as expected. This change documents the limitations we discovered in libgit2 git proxy support.