[bitnami/minio] fix disk is not writable when persistence disabled (#… (#7263)

This commit is contained in:
Roberto Andradas
2021-08-19 15:18:58 +02:00
committed by GitHub
parent bfb3b88277
commit 7ca1f134d2
2 changed files with 10 additions and 5 deletions
+1 -1
View File
@@ -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
@@ -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 }}