You've already forked athens-proxy-charts
fix(deployment): mount additional volumes
This commit is contained in:
@@ -80,6 +80,7 @@
|
||||
|
||||
{{- define "athens-proxy.deployment.volumeMounts" -}}
|
||||
{{- $volumeMounts := .Values.deployment.athensProxy.volumeMounts | default (list) }}
|
||||
|
||||
{{- if .Values.persistence.enabled }}
|
||||
{{- $volumeMounts = concat $volumeMounts (list (dict "name" "data" "mountPath" .Values.persistence.data.mountPath)) }}
|
||||
{{- end }}
|
||||
@@ -129,7 +130,7 @@
|
||||
{{/* volumes */}}
|
||||
|
||||
{{- define "athens-proxy.deployment.volumes" -}}
|
||||
{{- $volumes := .Values.deployment.athensProxy.volumes | default (list) }}
|
||||
{{- $volumes := .Values.deployment.volumes | default (list) }}
|
||||
|
||||
|
||||
{{/* volumes (data) */}}
|
||||
|
@@ -463,3 +463,10 @@ tests:
|
||||
- name: data
|
||||
mountPath: /usr/lib/athens-proxy/data
|
||||
template: templates/deployment.yaml
|
||||
- equal:
|
||||
path: spec.template.spec.volumes
|
||||
value:
|
||||
- name: data
|
||||
hostPath:
|
||||
path: /usr/lib/athens-proxy/data
|
||||
template: templates/deployment.yaml
|
||||
|
Reference in New Issue
Block a user