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 }}