Fixes volumeMounts if only netrc is enabled (#1273)

This commit is contained in:
Brian Charous
2019-06-07 05:59:24 -05:00
committed by marpio
parent 91d7c47ba5
commit 8074bcbb42
2 changed files with 5 additions and 3 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
name: athens-proxy
version: 0.2.8
version: 0.2.10
appVersion: 0.4.0
description: The proxy server for Go modules
icon: https://raw.githubusercontent.com/gomods/athens/master/docs/static/banner.png
@@ -75,7 +75,7 @@ spec:
{{- end }}
{{- if .Values.netrc.enabled }}
- name: ATHENS_NETRC_PATH
value: "/etc/netrc/netrc"
value: "/etc/netrc/.netrc"
{{- end }}
{{- if .Values.upstreamProxy.enabled }}
- name: ATHENS_FILTER_FILE
@@ -91,8 +91,10 @@ spec:
{{- end }}
ports:
- containerPort: 3000
{{- if eq .Values.storage.type "disk" }}
{{- if or (eq .Values.storage.type "disk") .Values.upstreamProxy.enabled .Values.netrc.enabled }}
volumeMounts:
{{- end }}
{{- if eq .Values.storage.type "disk" }}
- name: storage-volume
mountPath: {{ .Values.storage.disk.storageRoot | quote }}
{{- end }}