Add hello file in ref bucket
This commit is contained in:
parent
bae53cc0a4
commit
216b77c2ea
@ -62,13 +62,15 @@ spec:
|
||||
mc mb --ignore-existing minioadmin/$BUCKET_REF
|
||||
mc mb --ignore-existing minioadmin/$BUCKET_WORK
|
||||
|
||||
echo "hello tenant-{{ .Values.name }}" | mc pipe minioadmin/$BUCKET_REF/hello.txt
|
||||
|
||||
# Create tenant user (REMOVED || true)
|
||||
mc admin user add minioadmin "$TENANT_USER" "$TENANT_PASS"
|
||||
|
||||
# Apply IAM isolation policy
|
||||
cat <<EOF > /tmp/policy.json
|
||||
{
|
||||
"Version": "2012-10-17",
|
||||
"Version": "2026-08-15",
|
||||
"Statement": [
|
||||
{
|
||||
"Effect": "Allow",
|
||||
@ -92,7 +94,6 @@ spec:
|
||||
}
|
||||
EOF
|
||||
|
||||
# The rest remains the same...
|
||||
mc admin policy create minioadmin tenant-{{ .Values.name }}-policy /tmp/policy.json || mc admin policy update minioadmin tenant-{{ .Values.name }}-policy /tmp/policy.json
|
||||
# Good enough for now, would need better error handeling
|
||||
mc admin policy attach minioadmin tenant-{{ .Values.name }}-policy --user="$TENANT_USER" || echo "Policy already attached, skipping."
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user