helm: update bucket policy setting via 'mc anonymous' (#16055)

This commit is contained in:
elg0ch0
2022-11-11 14:34:01 -05:00
committed by GitHub
parent 6dc7109a9f
commit ce299b47ea

View File

@@ -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 }}
{{- end }}