From ce299b47ea9cf4665f06695a0e0f9e7ee41fb530 Mon Sep 17 00:00:00 2001 From: elg0ch0 <31018739+elg0ch0@users.noreply.github.com> Date: Fri, 11 Nov 2022 14:34:01 -0500 Subject: [PATCH] helm: update bucket policy setting via 'mc anonymous' (#16055) --- helm/minio/templates/_helper_create_bucket.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/helm/minio/templates/_helper_create_bucket.txt b/helm/minio/templates/_helper_create_bucket.txt index ced600dfe..57b88e466 100644 --- a/helm/minio/templates/_helper_create_bucket.txt +++ b/helm/minio/templates/_helper_create_bucket.txt @@ -103,7 +103,7 @@ if ! checkBucketExists $BUCKET ; then # At this point, the bucket should exist, skip checking for existence # Set policy on the bucket echo "Setting policy of bucket '$BUCKET' to '$POLICY'." - ${MC} policy set $POLICY myminio/$BUCKET + ${MC} anonymous set $POLICY myminio/$BUCKET } # Try connecting to MinIO instance @@ -120,4 +120,4 @@ connectToMinio $scheme {{- range .Values.buckets }} createBucket {{ tpl .name $global }} {{ .policy }} {{ .purge }} {{ .versioning }} {{ .objectlocking }} {{- end }} -{{- end }} \ No newline at end of file +{{- end }}