From 3397d56e58c1a15c37c5e2817155e4b1fec96e49 Mon Sep 17 00:00:00 2001 From: Muhammad Faizan Date: Thu, 18 Jan 2024 10:37:08 +0100 Subject: [PATCH] Fixed wait-build-job for main branch (#408) * Test PR for backend switch github action * Fix wait-build-job for main branch * updated comment * changed name for build job and change retries to 1 for gardener --- .../e2e-backend-switching-reuseable.yml | 2 +- .github/workflows/e2e.yml | 2 +- scripts/gardener/aws/deprovision.sh | 10 ++++---- scripts/gardener/aws/provision.sh | 24 +++++++++---------- 4 files changed, 19 insertions(+), 19 deletions(-) diff --git a/.github/workflows/e2e-backend-switching-reuseable.yml b/.github/workflows/e2e-backend-switching-reuseable.yml index cec05141..e81ea464 100644 --- a/.github/workflows/e2e-backend-switching-reuseable.yml +++ b/.github/workflows/e2e-backend-switching-reuseable.yml @@ -50,7 +50,7 @@ jobs: MACHINE_TYPE: "c4.xlarge" SCALER_MIN: "1" SCALER_MAX: "2" - RETRY_ATTEMPTS: "2" + RETRY_ATTEMPTS: "1" GARDENER_KYMATUNAS: ${{ secrets.GARDENER_KYMATUNAS }} run: | # setup Gardener kubeconfig. diff --git a/.github/workflows/e2e.yml b/.github/workflows/e2e.yml index b28557e9..5ef450f2 100644 --- a/.github/workflows/e2e.yml +++ b/.github/workflows/e2e.yml @@ -50,7 +50,7 @@ jobs: if: github.event_name == 'push' uses: kyma-project/wait-for-commit-status-action@2b3ffe09af8b6f40e1213d5fb7f91a7bd41ffb20 with: - context: ${{ github.ref == 'main' && 'post-eventing-manager-build' || 'release-eventing-manager-build' }} + context: "post-eventing-manager-build" commit_ref: "${{ github.sha }}" timeout: 600000 # 10 minutes in milliseconds # The check interval is kept long otherwise it will exhaust the GitHub rate limit (More info: https://docs.github.com/en/rest/overview/resources-in-the-rest-api?apiVersion=2022-11-28#rate-limiting) diff --git a/scripts/gardener/aws/deprovision.sh b/scripts/gardener/aws/deprovision.sh index cf4ebb36..ac20b9c5 100755 --- a/scripts/gardener/aws/deprovision.sh +++ b/scripts/gardener/aws/deprovision.sh @@ -1,10 +1,10 @@ #!/usr/bin/env bash -# Usage: To run this script, set the following environment variables and run this script. -# CLUSTER_NAME -# GARDENER_PROJECT_NAME -# GARDENER_KUBECONFIG - Path to kubeconfig for Gardener. -# WAIT_FOR_DELETE_COMPLETION - "true" | "false" +# Usage: To run this script, set the required environment variables and run this script. +# CLUSTER_NAME - (required) +# GARDENER_PROJECT_NAME - (required) +# GARDENER_KUBECONFIG - (required, description: Path to kubeconfig for Gardener.) +# WAIT_FOR_DELETE_COMPLETION - (optional, default: "false") # Permissions: In order to run this script you need to use a service account with permissions equivalent to the following GCP roles: # - Compute Admin diff --git a/scripts/gardener/aws/provision.sh b/scripts/gardener/aws/provision.sh index 562a1a44..c7f06ff8 100755 --- a/scripts/gardener/aws/provision.sh +++ b/scripts/gardener/aws/provision.sh @@ -1,17 +1,17 @@ #!/usr/bin/env bash -# Usage: To run this script, set the following environment variables and run this script. -# CLUSTER_NAME -# GARDENER_REGION -# GARDENER_ZONES -# GARDENER_PROJECT_NAME -# GARDENER_PROVIDER_SECRET_NAME -# GARDENER_KUBECONFIG - Path to kubeconfig for Gardener. -# MACHINE_TYPE - default: "m5.xlarge" -# SCALER_MIN - default: 1 -# SCALER_MAX - default: 2 -# RETRY_ATTEMPTS - default: 1 -# GARDENER_CLUSTER_VERSION - default as defined in kyma CLI. +# Usage: To run this script, set the required environment variables and run this script. +# CLUSTER_NAME - (required) +# GARDENER_REGION - (required) +# GARDENER_ZONES - (required) +# GARDENER_PROJECT_NAME - (required) +# GARDENER_PROVIDER_SECRET_NAME - (required) +# GARDENER_KUBECONFIG - (required, description: Path to kubeconfig for Gardener.) +# MACHINE_TYPE - (optional, default: "m5.xlarge") +# SCALER_MIN - (optional, default: 1) +# SCALER_MAX - (optional, default: 2) +# RETRY_ATTEMPTS - (optional, default: 1) +# GARDENER_CLUSTER_VERSION - (optional, default: kyma CLI default value for kube-version.) # Permissions: In order to run this script you need to use a service account with permissions equivalent to the following GCP roles: # - Compute Admin