From 839a56e06d550ae2c6bdc626918496f084ff3fed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Viktor=20Sandstr=C3=B6m?= Date: Wed, 7 Feb 2024 09:53:20 +0100 Subject: [PATCH] Fixed bug where minio crashed when bucket existed (#144) * Minor bugfix --- charts/apps/minio/chart/templates/deployment.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/charts/apps/minio/chart/templates/deployment.yaml b/charts/apps/minio/chart/templates/deployment.yaml index 32a0933a..3903ed8f 100644 --- a/charts/apps/minio/chart/templates/deployment.yaml +++ b/charts/apps/minio/chart/templates/deployment.yaml @@ -82,7 +82,7 @@ spec: sleep 5 mc alias set local http://127.0.0.1:9000 ${MINIO_ROOT_USER} ${MINIO_ROOT_PASSWORD} mc admin user add local {{ .Values.credentials.access_key }} {{ .Values.credentials.secret_key }} - mc mb local/data-bucket + mc mb local/data-bucket || true mc admin policy attach local readwrite --user {{ .Values.credentials.access_key }} || true hostname: {{ .Release.Name }}-minio restartPolicy: Always