mirror of
https://github.com/gomods/athens
synced 2026-02-03 11:00:32 +00:00
Add support for extra evv vars to deployment (#1270)
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
name: athens-proxy
|
||||
version: 0.2.7
|
||||
version: 0.2.8
|
||||
appVersion: 0.4.0
|
||||
description: The proxy server for Go modules
|
||||
icon: https://raw.githubusercontent.com/gomods/athens/master/docs/static/banner.png
|
||||
|
||||
@@ -47,7 +47,20 @@ Available options:
|
||||
- [Upstream module repository](https://docs.gomods.io/install/install-on-kubernetes/#upstream-module-repository)
|
||||
- [.netrc file support](https://docs.gomods.io/install/install-on-kubernetes/#netrc-file-support)
|
||||
|
||||
## Private git servers over ssh support
|
||||
### Pass extra configuration environment variables
|
||||
|
||||
You can pass any extra environment variables supported in [config.dev.toml](https://github.com/gomods/athens/blob/master/config.dev.toml).
|
||||
The example below shows how to set username/password for basic auth:
|
||||
|
||||
```yaml
|
||||
configEnvVars:
|
||||
- name: BASIC_AUTH_USER
|
||||
value: "some_user"
|
||||
- name: BASIC_AUTH_PASS
|
||||
value: "some_password"
|
||||
```
|
||||
|
||||
### Private git servers over ssh support
|
||||
|
||||
One or more of git servers can added to `sshGitServers`, and the corresponding config files (git config and ssh config) and ssh keys will be created. Athens then will use these configs and keys to download the source from the git servers.
|
||||
|
||||
|
||||
@@ -61,6 +61,9 @@ spec:
|
||||
{{- else }}
|
||||
value: "3"
|
||||
{{- end }}
|
||||
{{- if .Values.configEnvVars }}
|
||||
{{ toYaml .Values.configEnvVars | indent 8 }}
|
||||
{{- end }}
|
||||
- name: ATHENS_STORAGE_TYPE
|
||||
value: {{ .Values.storage.type | quote }}
|
||||
{{- if eq .Values.storage.type "disk"}}
|
||||
|
||||
@@ -45,6 +45,15 @@ storage:
|
||||
# for example, you need to run 'helm install --set storage.mongo.url=myurl ...'
|
||||
url: "SET THIS ON THE COMMAND LINE"
|
||||
|
||||
# Extra environment variables to be passed
|
||||
# Commented lines below, show how to set username/password for basic auth
|
||||
# You can add any new ones at the bottom
|
||||
configEnvVars: {}
|
||||
# - name: BASIC_AUTH_USER
|
||||
# value: "some_user"
|
||||
# - name: BASIC_AUTH_PASS
|
||||
# value: "some_password"
|
||||
|
||||
netrc:
|
||||
# if enabled, it expects to find the content of a valid .netrc file imported as a secret named netrcsecret
|
||||
enabled: false
|
||||
|
||||
Reference in New Issue
Block a user