From 1cd555b04abd33c825e35cc3109fe213f15f1e7b Mon Sep 17 00:00:00 2001 From: Carlos Ravelo Date: Fri, 19 Feb 2021 00:37:48 -0500 Subject: [PATCH] Update deployment.yaml Added subPath to volumeMount to allow mounting a config volume with multiple folders for each app --- chart/bitwarden-k8s/templates/deployment.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/chart/bitwarden-k8s/templates/deployment.yaml b/chart/bitwarden-k8s/templates/deployment.yaml index d4db73a..e4e075d 100644 --- a/chart/bitwarden-k8s/templates/deployment.yaml +++ b/chart/bitwarden-k8s/templates/deployment.yaml @@ -55,6 +55,9 @@ spec: volumeMounts: - name: data mountPath: /data + {{- if and .Values.persistence.enabled .Values.persistence.subPath }} + subPath: {{ .Values.persistence.subPath }} + {{- end }} {{- if .Values.image.pullSecrets }} imagePullSecrets: - name: {{ .Values.image.pullSecrets }}