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_REF
|
||||||
mc mb --ignore-existing minioadmin/$BUCKET_WORK
|
mc mb --ignore-existing minioadmin/$BUCKET_WORK
|
||||||
|
|
||||||
|
echo "hello tenant-{{ .Values.name }}" | mc pipe minioadmin/$BUCKET_REF/hello.txt
|
||||||
|
|
||||||
# Create tenant user (REMOVED || true)
|
# Create tenant user (REMOVED || true)
|
||||||
mc admin user add minioadmin "$TENANT_USER" "$TENANT_PASS"
|
mc admin user add minioadmin "$TENANT_USER" "$TENANT_PASS"
|
||||||
|
|
||||||
# Apply IAM isolation policy
|
# Apply IAM isolation policy
|
||||||
cat <<EOF > /tmp/policy.json
|
cat <<EOF > /tmp/policy.json
|
||||||
{
|
{
|
||||||
"Version": "2012-10-17",
|
"Version": "2026-08-15",
|
||||||
"Statement": [
|
"Statement": [
|
||||||
{
|
{
|
||||||
"Effect": "Allow",
|
"Effect": "Allow",
|
||||||
@ -92,7 +94,6 @@ spec:
|
|||||||
}
|
}
|
||||||
EOF
|
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
|
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
|
# 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."
|
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