mirror of
https://github.com/minio/minio.git
synced 2025-01-11 15:03:22 -05:00
helm: update bucket policy setting via 'mc anonymous' (#16055)
This commit is contained in:
parent
6dc7109a9f
commit
ce299b47ea
@ -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 }}
|
||||
|
Loading…
Reference in New Issue
Block a user