Add gitconfig support for helm chart (#1194)

This commit adds support for gitconfig in the athens helm chart.

Reflects https://docs.gomods.io/configuration/authentication/#altassian-bitbucket-and-ssh-secured-git-vcs-s
This commit is contained in:
Igor Zibarev
2019-07-09 00:50:02 +03:00
committed by Aaron Schlesinger
parent 91ac2c43df
commit d620551b72
5 changed files with 55 additions and 1 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
name: athens-proxy
version: 0.2.14
version: 0.2.15
appVersion: 0.4.0
description: The proxy server for Go modules
icon: https://raw.githubusercontent.com/gomods/athens/master/docs/static/banner.png
+1
View File
@@ -46,6 +46,7 @@ Available options:
- [Ingress Resource](https://docs.gomods.io/install/install-on-kubernetes/#ingress-resource)
- [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)
- [gitconfig support](https://docs.gomods.io/install/install-on-kubernetes/#gitconfig-support)
### Pass extra configuration environment variables
@@ -170,6 +170,11 @@ spec:
- name: ssh-keys
mountPath: /ssh-keys
{{- end }}
{{- if .Values.gitconfig.enabled }}
- name: gitconfig
mountPath: "/etc/gitconfig"
subPath: "gitconfig"
{{- end }}
{{- with .Values.resources }}
resources:
{{ toYaml . | indent 10 }}
@@ -202,6 +207,14 @@ spec:
secret:
secretName: {{ template "fullname" . }}-ssh-git-servers
{{- end }}
{{- if .Values.gitconfig.enabled }}
- name: gitconfig
secret:
secretName: {{ .Values.gitconfig.secretName }}
items:
- key: {{ .Values.gitconfig.secretKey }}
path: "gitconfig"
{{- end }}
{{- with .Values.nodeSelector }}
nodeSelector:
{{ toYaml . | indent 8 }}
+9
View File
@@ -71,6 +71,15 @@ netrc:
enabled: false
existingSecret: netrcsecret
# gitconfig section provides a way to inject git config file to make athens able to fetch modules from private git repos.
gitconfig:
# By default, gitconfig is disabled.
enabled: false
# Name of the kubernetes secret (in the same namespace as athens-proxy) that contains git config.
secretName: athens-proxy-gitconfig
# Key in the kubernetes secret that contains git config data.
secretKey: gitconfig
upstreamProxy:
# This is where you can set the URL for the upstream module repository.
# If 'enabled' is set to true, Athens will try to download modules from the upstream when it doesn't find them in its own storage.