mirror of
https://github.com/gomods/athens
synced 2026-02-03 11:00:32 +00:00
Fixes volumeMounts if only netrc is enabled (#1273)
This commit is contained in:
@@ -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 }}
|
||||
|
||||
Reference in New Issue
Block a user