Skip to content

Commit

Permalink
Merge pull request #547 from darkowlzz/docs-git-proxy
Browse files Browse the repository at this point in the history
docs: Add git proxy support docs
  • Loading branch information
stefanprodan authored Jan 20, 2022
2 parents c99d003 + 017207d commit d1d54e0
Showing 1 changed file with 18 additions and 3 deletions.
21 changes: 18 additions & 3 deletions docs/spec/v1beta1/gitrepositories.md
Original file line number Diff line number Diff line change
Expand Up @@ -207,9 +207,9 @@ To be able to support Azure DevOps a compromise solution was built, giving the u
option to select the git library while accepting the drawbacks.

| Git Implementation | Shallow Clones | Git Submodules | V2 Protocol Support |
|---|---|---|---|
| 'go-git' | true | true | false |
| 'libgit2' | false | false | true |
| --- | --- | --- | --- |
| 'go-git' | true | true | false |
| 'libgit2' | false | false | true |

Pull the master branch from a repository in Azure DevOps.

Expand All @@ -225,6 +225,21 @@ spec:
gitImplementation: libgit2
```

## Git Proxy

A Git proxy can be configured by setting the appropriate environment variables
for proxy configurations, for example `HTTPS_PROXY`, `NO_PROXY`, etc., in the
source-controller pod. There may be some limitations in the proxy support based
on the Git implementations.

| Git Implementation | HTTP_PROXY | HTTPS_PROXY | NO_PROXY | Self-signed Certs |
| --- | --- | --- | --- | --- |
| 'go-git' | true | true | true | false |
| 'libgit2' | false | true | false | true |

**NOTE:** libgit2 v1.2.0 supports `NO_PROXY`, but source-controller uses
libgit2 v1.1.1 at the moment.

## Spec examples

### Checkout strategies
Expand Down

0 comments on commit d1d54e0

Please sign in to comment.