From ff6e63c0ab90d4153f97535285a52a198f58147f Mon Sep 17 00:00:00 2001 From: Will Moorby Date: Sat, 10 Feb 2024 12:41:50 +0000 Subject: [PATCH] Added MINIO_DATA_DIR envVar to standalone and distributed charts that use the value of persistence.mountPath Signed-off-by: Will Moorby --- bitnami/minio/Chart.yaml | 2 +- bitnami/minio/README.md | 7 ++++--- bitnami/minio/templates/distributed/statefulset.yaml | 2 ++ bitnami/minio/templates/standalone/deployment.yaml | 4 ++++ 4 files changed, 11 insertions(+), 4 deletions(-) diff --git a/bitnami/minio/Chart.yaml b/bitnami/minio/Chart.yaml index 2f18cd7184a97e..ce4b4a6ad2c5c8 100644 --- a/bitnami/minio/Chart.yaml +++ b/bitnami/minio/Chart.yaml @@ -34,4 +34,4 @@ maintainers: name: minio sources: - https://github.com/bitnami/charts/tree/main/bitnami/minio -version: 13.4.5 +version: 13.4.6 diff --git a/bitnami/minio/README.md b/bitnami/minio/README.md index 4b255f1bb477c1..2f7696415d1241 100644 --- a/bitnami/minio/README.md +++ b/bitnami/minio/README.md @@ -405,9 +405,10 @@ MinIO® exports Prometheus metrics at `/minio/v2/metrics/cluster`. To allow P ## Persistence -The [Bitnami Object Storage based on MinIO(®)](https://github.com/bitnami/containers/tree/main/bitnami/minio) image stores data at the `/data` path of the container. +The [Bitnami Object Storage based on MinIO(®)](https://github.com/bitnami/containers/tree/main/bitnami/minio) image stores data at the `/bitnami/minio/data` path of the container by default. +This can be modified with the `persistence.mountPath` value which modifies the `MINIO_DATA_DIR` environment variable of the container. -The chart mounts a [Persistent Volume](https://kubernetes.io/docs/concepts/storage/persistent-volumes/) at this location. The volume is created using dynamic volume provisioning. +The chart mounts a [Persistent Volume](https://kubernetes.io/docs/concepts/storage/persistent-volumes/) at this location so that data within MinIO is persistent. The volume is created using dynamic volume provisioning. ### Adjust permissions of persistent volume mountpoint @@ -602,4 +603,4 @@ Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and -limitations under the License. \ No newline at end of file +limitations under the License. diff --git a/bitnami/minio/templates/distributed/statefulset.yaml b/bitnami/minio/templates/distributed/statefulset.yaml index 1d59c5c43c9030..3f1002168defa8 100644 --- a/bitnami/minio/templates/distributed/statefulset.yaml +++ b/bitnami/minio/templates/distributed/statefulset.yaml @@ -185,6 +185,8 @@ spec: - name: MINIO_CONSOLE_PORT_NUMBER value: {{ .Values.containerPorts.console | quote }} {{- end }} + - name: MINIO_DATA_DIR + value: {{ $mountPath | quote }} {{- if .Values.extraEnvVars }} {{- include "common.tplvalues.render" (dict "value" .Values.extraEnvVars "context" $) | nindent 12 }} {{- end }} diff --git a/bitnami/minio/templates/standalone/deployment.yaml b/bitnami/minio/templates/standalone/deployment.yaml index 227730c23c4e70..3acb2fffc94a6f 100644 --- a/bitnami/minio/templates/standalone/deployment.yaml +++ b/bitnami/minio/templates/standalone/deployment.yaml @@ -148,6 +148,10 @@ spec: - name: MINIO_CERTS_DIR value: {{ .Values.tls.mountPath | quote }} {{- end }} + {{- if .Values.persistence.mountPath }} + - name: MINIO_DATA_DIR + value: {{ .Values.persistence.mountPath | quote }} + {{- end }} {{- if .Values.extraEnvVars }} {{- include "common.tplvalues.render" (dict "value" .Values.extraEnvVars "context" $) | nindent 12 }} {{- end }}