Skip to content

Commit

Permalink
Fixes volumeMounts if only netrc is enabled (#1273)
Browse files Browse the repository at this point in the history
  • Loading branch information
briancharous authored and marpio committed Jun 7, 2019
1 parent 91d7c47 commit 8074bcb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion charts/athens-proxy/Chart.yaml
Original file line number Diff line number Diff line change
@@ -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
Expand Down
6 changes: 4 additions & 2 deletions charts/athens-proxy/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 }}
Expand Down

0 comments on commit 8074bcb

Please sign in to comment.