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
@@ -103,7 +103,7 @@ if ! checkBucketExists $BUCKET ; then
# At this point, the bucket should exist, skip checking for existence # At this point, the bucket should exist, skip checking for existence
# Set policy on the bucket # Set policy on the bucket
echo "Setting policy of bucket '$BUCKET' to '$POLICY'." 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 # Try connecting to MinIO instance