From 7ca1f134d2e80ec3490559bccbb337638fdbc5dd Mon Sep 17 00:00:00 2001 From: Roberto Andradas Date: Thu, 19 Aug 2021 15:18:58 +0200 Subject: [PATCH] =?UTF-8?q?[bitnami/minio]=20fix=20disk=20is=20not=20writa?= =?UTF-8?q?ble=20when=20persistence=20disabled=20(#=E2=80=A6=20(#7263)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bitnami/minio/Chart.yaml | 2 +- .../minio/templates/distributed/statefulset.yaml | 13 +++++++++---- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/bitnami/minio/Chart.yaml b/bitnami/minio/Chart.yaml index 9e0edb321..41bccc8c0 100644 --- a/bitnami/minio/Chart.yaml +++ b/bitnami/minio/Chart.yaml @@ -25,4 +25,4 @@ name: minio sources: - https://github.com/bitnami/bitnami-docker-minio - https://min.io -version: 7.1.7 +version: 7.1.8 diff --git a/bitnami/minio/templates/distributed/statefulset.yaml b/bitnami/minio/templates/distributed/statefulset.yaml index 9f6904a95..16b2ac1b5 100644 --- a/bitnami/minio/templates/distributed/statefulset.yaml +++ b/bitnami/minio/templates/distributed/statefulset.yaml @@ -237,14 +237,14 @@ spec: - name: minio-certs mountPath: {{ default "/certs" .Values.tls.mountPath }} {{- end }} - {{- if and .Values.persistence.enabled (gt $drivesPerNode 1) }} + {{- if gt $drivesPerNode 1 }} {{- range $diskId := until $drivesPerNode }} - name: data-{{ $diskId }} - mountPath: {{ $mountPath }}-{{ $diskId }} + mountPath: {{ $mountPath }}-{{ $diskId }} {{- end }} {{- else }} - name: data - mountPath: {{ $mountPath }} + mountPath: {{ $mountPath }} {{- end }} {{- if .Values.extraVolumeMounts }} {{- include "common.tplvalues.render" (dict "value" .Values.extraVolumeMounts "context" $) | nindent 12 }} @@ -273,7 +273,12 @@ spec: {{- if .Values.extraVolumes }} {{- include "common.tplvalues.render" (dict "value" .Values.extraVolumes "context" $) | nindent 8 }} {{- end }} - {{- if not .Values.persistence.enabled }} + {{- if and (not .Values.persistence.enabled) (gt $drivesPerNode 1) }} + {{- range $diskId := until $drivesPerNode }} + - name: data-{{ $diskId }} + emptyDir: {} + {{- end }} + {{- else if not .Values.persistence.enabled }} - name: data emptyDir: {} {{- else }}