feat(scripts): Always create MinIO service account

This commit is contained in:
Hugo committed 2024-03-04 19:42:01 +00:00
1 parent a01669f03f
commit 317f73eb5d
1 file changed
+7 -4
+7 -4
View File
@@ -20,8 +20,8 @@ function create_service_account() {
echo 'Logging into MinIO instance...' echo 'Logging into MinIO instance...'
login_payload=$( login_payload=$(
jq -crn \ jq -crn \
--arg accessKey "$minio_root_user" \ --arg accessKey "$1" \
--arg secretKey "$minio_root_pw" \ --arg secretKey "$2" \
'$ARGS.named' '$ARGS.named'
) )
@@ -105,6 +105,9 @@ if [ "$healthy" = false ]; then
fi fi
echo 'Done!' echo 'Done!'
sleep 2 # Despite doing a healthcheck, it seems like we still have to wait for instance to stabilize.
create_service_account $minio_root_user $minio_root_pw
echo '###########################################################' echo '###########################################################'
echo 'MinIO instance information:' echo 'MinIO instance information:'
echo " Container Name: $container_name" echo " Container Name: $container_name"
@@ -116,6 +119,6 @@ fi
if [ -n "${MINIO_SECRET_KEY}" ]; then if [ -n "${MINIO_SECRET_KEY}" ]; then
echo " Service Account Secret Key: $MINIO_SECRET_KEY" echo " Service Account Secret Key: $MINIO_SECRET_KEY"
fi fi
echo 'You can use the root username and password as' echo 'You can use the root username and password as access key'
echo 'access key and secret key respectively.' echo 'and secret key respectively (not in the plugin though).'
echo '###########################################################' echo '###########################################################'