Add support for extra evv vars to deployment (#1270)

This commit is contained in:
Rimas Mocevicius
2019-06-05 19:44:02 +01:00
committed by marpio
parent ee05c2b6f8
commit 3f535524c7
4 changed files with 27 additions and 2 deletions
+1 -1
View File
@@ -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
+14 -1
View File
@@ -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"}}
+9
View File
@@ -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