diff --git a/charts/tenant/templates/minio-setup.yaml b/charts/tenant/templates/minio-setup.yaml index 6912cf2..3d73e5b 100644 --- a/charts/tenant/templates/minio-setup.yaml +++ b/charts/tenant/templates/minio-setup.yaml @@ -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 < /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."