From cab87c598962686aa0bbea5220644979240d60b5 Mon Sep 17 00:00:00 2001 From: Pierre Gerbelot Date: Tue, 10 Jun 2025 11:52:30 +0200 Subject: [PATCH 1/2] chore: add log in create_qovery_demo.sh script --- cmd/demo_scripts/create_qovery_demo.sh | 24 +++++++++++++++++++++--- 1 file changed, 21 insertions(+), 3 deletions(-) diff --git a/cmd/demo_scripts/create_qovery_demo.sh b/cmd/demo_scripts/create_qovery_demo.sh index 7d3219f8..96f28b2f 100755 --- a/cmd/demo_scripts/create_qovery_demo.sh +++ b/cmd/demo_scripts/create_qovery_demo.sh @@ -47,10 +47,28 @@ get_or_create_demo_cluster() { if [ "$clusterId" = "" ] then payload='{"name":"'$2'","region":"on-premise","cloud_provider":"ON_PREMISE","kubernetes":"SELF_MANAGED", "production": false, "is_demo": true, "features":[],"cloud_provider_credentials":{"cloud_provider":"ON_PREMISE","credentials":{"id":"'${accountId}'","name":"on-premise"},"region":"unknown"}}' - clusterId=$(curl -s -X POST --fail-with-body -H "${AUTHORIZATION_HEADER}" -H 'Content-Type: application/json' -H "User-Agent: ${USER_AGENT}" -d "${payload}" ${QOVERY_API_URL}/organization/"${ORGANIZATION_ID}"/cluster | jq -r .id) - fi - echo "$clusterId" + post_response=$(curl -s -X POST -w "\n%{http_code}" --fail-with-body -H "${AUTHORIZATION_HEADER}" -H 'Content-Type: application/json' -H "User-Agent: ${USER_AGENT}" -d "${payload}" ${QOVERY_API_URL}/organization/"${ORGANIZATION_ID}"/cluster) + + response_body=$(echo "$post_response" | sed '$d') + status_code=$(echo "$post_response" | tail -n 1) + + if [ "$status_code" != "201" ]; then + echo "❌ Failed to create demo cluster '$clusterName'. Status code: $status_code" >&2 + echo "Response: $response_body" >&2 + exit 1 + fi + + clusterId=$(echo "$response_body" | jq -r .id) + + if [ "$clusterId" = "null" ] || [ -z "$clusterId" ]; then + echo "❌ Failed to extract cluster ID from response" >&2 + echo "Response: $response_body" >&2 + exit 1 + fi + fi + + echo "$clusterId" } get_cluster_values() { From 75db02dec4062295322011814f1884d15bc509d2 Mon Sep 17 00:00:00 2001 From: Pierre Gerbelot Date: Tue, 10 Jun 2025 13:56:37 +0200 Subject: [PATCH 2/2] fix dependabot.yml --- .github/dependabot.yml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 456db162..48d44427 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -7,6 +7,10 @@ updates: open-pull-requests-limit: 20 rebase-strategy: auto groups: - all: - name: 'All dependencies' - update_types: [all] \ No newline at end of file + all: + patterns: + - "*" + update-types: + - "major" + - "minor" + - "patch" \ No newline at end of file