-
Notifications
You must be signed in to change notification settings - Fork 209
gitrepo: Add support for specifying proxy per GitRepository
#1109
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -439,6 +439,55 @@ GitRepository, and changes to the resource or in the Git repository will not | |
result in a new Artifact. When the field is set to `false` or removed, it will | ||
resume. | ||
|
||
### Proxy secret reference | ||
|
||
`.spec.proxySecretRef.name` is an optional field used to specify the name of a | ||
Secret that contains the proxy settings for the object. These settings are used | ||
for all remote Git operations related to the GitRepository. | ||
The Secret can contain three keys: | ||
|
||
- `address`, to specify the address of the proxy server. This is a required key. | ||
- `username`, to specify the username to use if the proxy server is protected by | ||
basic authentication. This is an optional key. | ||
- `password`, to specify the password to use if the proxy server is protected by | ||
basic authentication. This is an optional key. | ||
|
||
The proxy server must be either HTTP/S or SOCKS5. You can use a SOCKS5 proxy | ||
with a HTTP/S Git repository url. | ||
|
||
Examples: | ||
|
||
```yaml | ||
--- | ||
apiVersion: v1 | ||
kind: Secret | ||
metadata: | ||
name: http-proxy | ||
type: Opaque | ||
stringData: | ||
address: http://proxy.com | ||
username: mandalorian | ||
password: grogu | ||
``` | ||
|
||
```yaml | ||
--- | ||
apiVersion: v1 | ||
kind: Secret | ||
metadata: | ||
name: ssh-proxy | ||
type: Opaque | ||
stringData: | ||
address: socks5://proxy.com | ||
username: mandalorian | ||
password: grogu | ||
``` | ||
|
||
Proxying can also be configured in the source-controller Deployment directly by | ||
using the standard environment variables such as `HTTPS_PROXY`, `ALL_PROXY`, etc. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The cheatsheet is going away, we'll have a dedicated page for Proxy settings under |
||
|
||
`.spec.proxySecretRef.name` takes precedence over all environment variables. | ||
|
||
### Recurse submodules | ||
|
||
`.spec.recurseSubmodules` is an optional field to enable the initialization of | ||
|
Uh oh!
There was an error while loading. Please reload this page.