From 05c1a351dc80b7cc3418ed14323f98189b648f8b Mon Sep 17 00:00:00 2001 From: Santi <150878947+0xsanti@users.noreply.github.com> Date: Wed, 15 Nov 2023 11:50:43 +0800 Subject: [PATCH] fix statefulset mountpaths --- charts/vaultwarden/Chart.yaml | 2 +- charts/vaultwarden/templates/statefulset.yaml | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/charts/vaultwarden/Chart.yaml b/charts/vaultwarden/Chart.yaml index 4aae120..f649989 100644 --- a/charts/vaultwarden/Chart.yaml +++ b/charts/vaultwarden/Chart.yaml @@ -13,5 +13,5 @@ maintainers: - name: guerzon email: guerzon@proton.me url: https://github.com/guerzon -version: 0.16.1 +version: 0.17.0 kubeVersion: ">=1.12.0-0" diff --git a/charts/vaultwarden/templates/statefulset.yaml b/charts/vaultwarden/templates/statefulset.yaml index 64c1159..ba06d73 100644 --- a/charts/vaultwarden/templates/statefulset.yaml +++ b/charts/vaultwarden/templates/statefulset.yaml @@ -110,16 +110,17 @@ spec: path: /alive port: 8080 initialDelaySeconds: 5 - {{- if .Values.data }} + {{- if or (.Values.data) (.Values.attachments) }} volumeMounts: + {{- if .Values.data }} - name: {{ .Values.data.name }} mountPath: {{ default "/data" .Values.data.path }} {{- end }} {{- if .Values.attachments }} - volumeMounts: - name: {{ .Values.attachments.name }} mountPath: {{ default "/data/attachments" .Values.attachments.path }} {{- end }} + {{- end }} resources: {{- toYaml .Values.resources | nindent 12 }} {{- if .Values.sidecars }}