From 67cf15d03665a11c42b1241200c0d5d3122e4805 Mon Sep 17 00:00:00 2001 From: Pierre KELBERT Date: Wed, 17 Aug 2022 17:50:32 +0200 Subject: [PATCH] mount export volume even if persistence is disabled (#15543) --- helm/minio/templates/deployment.yaml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/helm/minio/templates/deployment.yaml b/helm/minio/templates/deployment.yaml index 22f904459..321692637 100644 --- a/helm/minio/templates/deployment.yaml +++ b/helm/minio/templates/deployment.yaml @@ -82,13 +82,11 @@ spec: - name: minio-user mountPath: "/tmp/credentials" readOnly: true - {{- if .Values.persistence.enabled }} - name: export mountPath: {{ .Values.mountPath }} - {{- if .Values.persistence.subPath }} + {{- if and .Values.persistence.enabled .Values.persistence.subPath }} subPath: "{{ .Values.persistence.subPath }}" {{- end }} - {{- end }} {{- if .Values.extraSecret }} - name: extra-secret mountPath: "/tmp/minio-config-env"