Skip to content

Commit 017207d

Browse files
committed
docs: Add git proxy support docs
Signed-off-by: Sunny <darkowlzz@protonmail.com>
1 parent c99d003 commit 017207d

File tree

1 file changed

+18
-3
lines changed

1 file changed

+18
-3
lines changed

docs/spec/v1beta1/gitrepositories.md

+18-3
Original file line numberDiff line numberDiff line change
@@ -207,9 +207,9 @@ To be able to support Azure DevOps a compromise solution was built, giving the u
207207
option to select the git library while accepting the drawbacks.
208208

209209
| Git Implementation | Shallow Clones | Git Submodules | V2 Protocol Support |
210-
|---|---|---|---|
211-
| 'go-git' | true | true | false |
212-
| 'libgit2' | false | false | true |
210+
| --- | --- | --- | --- |
211+
| 'go-git' | true | true | false |
212+
| 'libgit2' | false | false | true |
213213

214214
Pull the master branch from a repository in Azure DevOps.
215215

@@ -225,6 +225,21 @@ spec:
225225
gitImplementation: libgit2
226226
```
227227

228+
## Git Proxy
229+
230+
A Git proxy can be configured by setting the appropriate environment variables
231+
for proxy configurations, for example `HTTPS_PROXY`, `NO_PROXY`, etc., in the
232+
source-controller pod. There may be some limitations in the proxy support based
233+
on the Git implementations.
234+
235+
| Git Implementation | HTTP_PROXY | HTTPS_PROXY | NO_PROXY | Self-signed Certs |
236+
| --- | --- | --- | --- | --- |
237+
| 'go-git' | true | true | true | false |
238+
| 'libgit2' | false | true | false | true |
239+
240+
**NOTE:** libgit2 v1.2.0 supports `NO_PROXY`, but source-controller uses
241+
libgit2 v1.1.1 at the moment.
242+
228243
## Spec examples
229244

230245
### Checkout strategies

0 commit comments

Comments
 (0)