From 292ee662b5fbb057206f3f190da5b2cd5b902db0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Wei=C3=9Fe?= Date: Wed, 22 Nov 2023 10:17:43 +0100 Subject: [PATCH] Update CI to use different GCP project MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Daniel Weiße --- .github/actions/e2e_test/action.yml | 3 --- .github/workflows/e2e-test-daily.yml | 9 ++++----- .github/workflows/e2e-test-release.yml | 9 ++++----- .github/workflows/e2e-test-tf-module.yml | 5 +++-- .github/workflows/e2e-test-weekly.yml | 9 ++++----- .github/workflows/e2e-test.yml | 11 +++++------ .github/workflows/e2e-upgrade.yml | 13 ++++++------- dev-docs/workflows/github-actions.md | 22 +++++----------------- 8 files changed, 31 insertions(+), 50 deletions(-) diff --git a/.github/actions/e2e_test/action.yml b/.github/actions/e2e_test/action.yml index a157b2b925..cd47d1f1cf 100644 --- a/.github/actions/e2e_test/action.yml +++ b/.github/actions/e2e_test/action.yml @@ -37,9 +37,6 @@ inputs: gcpClusterCreateServiceAccount: description: "Service account with permissions to create a Constellation cluster on GCP." required: true - gcpInClusterServiceAccountKey: - description: "Service account to use inside the created Constellation cluster on GCP." - required: true awsOpenSearchDomain: description: "AWS OpenSearch Endpoint Domain to upload the benchmark results." awsOpenSearchUsers: diff --git a/.github/workflows/e2e-test-daily.yml b/.github/workflows/e2e-test-daily.yml index a9f77c31fd..bdb1e076a0 100644 --- a/.github/workflows/e2e-test-daily.yml +++ b/.github/workflows/e2e-test-daily.yml @@ -74,10 +74,9 @@ jobs: isDebugImage: ${{ matrix.refStream == 'ref/main/stream/debug/?' }} cliVersion: ${{ matrix.refStream == 'ref/release/stream/stable/?' && needs.find-latest-image.outputs.image-release-stable || '' }} refStream: ${{ matrix.refStream }} - gcpProject: ${{ secrets.GCP_E2E_PROJECT }} - gcpClusterCreateServiceAccount: "constellation-e2e-cluster@constellation-331613.iam.gserviceaccount.com" - gcpIAMCreateServiceAccount: "constellation-iam-e2e@constellation-331613.iam.gserviceaccount.com" - gcpInClusterServiceAccountKey: ${{ secrets.GCP_CLUSTER_SERVICE_ACCOUNT }} + gcpProject: constellation-e2e # ${{ secrets.GCP_E2E_PROJECT }} + gcpClusterCreateServiceAccount: "infrastructure-e2e@constellation-e2e.iam.gserviceaccount.com" + gcpIAMCreateServiceAccount: "iam-e2e@constellation-e2e.iam.gserviceaccount.com" kubernetesVersion: ${{ matrix.kubernetesVersion }} test: ${{ matrix.test }} buildBuddyApiKey: ${{ secrets.BUILDBUDDY_ORG_API_KEY }} @@ -106,7 +105,7 @@ jobs: with: cloudProvider: ${{ matrix.provider }} azureCredentials: ${{ secrets.AZURE_E2E_IAM_CREDENTIALS }} - gcpServiceAccount: "constellation-iam-e2e@constellation-331613.iam.gserviceaccount.com" + gcpServiceAccount: "iam-e2e@constellation-e2e.iam.gserviceaccount.com" - name: Notify about failure if: | diff --git a/.github/workflows/e2e-test-release.yml b/.github/workflows/e2e-test-release.yml index 681a340d2b..cb4af633a6 100644 --- a/.github/workflows/e2e-test-release.yml +++ b/.github/workflows/e2e-test-release.yml @@ -226,10 +226,9 @@ jobs: awsOpenSearchDomain: ${{ secrets.AWS_OPENSEARCH_DOMAIN }} awsOpenSearchUsers: ${{ secrets.AWS_OPENSEARCH_USER }} awsOpenSearchPwd: ${{ secrets.AWS_OPENSEARCH_PWD }} - gcpProject: ${{ secrets.GCP_E2E_PROJECT }} - gcpClusterCreateServiceAccount: "constellation-e2e-cluster@constellation-331613.iam.gserviceaccount.com" - gcpIAMCreateServiceAccount: "constellation-iam-e2e@constellation-331613.iam.gserviceaccount.com" - gcpInClusterServiceAccountKey: ${{ secrets.GCP_CLUSTER_SERVICE_ACCOUNT }} + gcpProject: constellation-e2e # ${{ secrets.GCP_E2E_PROJECT }} + gcpClusterCreateServiceAccount: "infrastructure-e2e@constellation-e2e.iam.gserviceaccount.com" + gcpIAMCreateServiceAccount: "iam-e2e@constellation-e2e.iam.gserviceaccount.com" test: ${{ matrix.test }} buildBuddyApiKey: ${{ secrets.BUILDBUDDY_ORG_API_KEY }} azureClusterCreateCredentials: ${{ secrets.AZURE_E2E_CLUSTER_CREDENTIALS }} @@ -255,7 +254,7 @@ jobs: with: cloudProvider: ${{ matrix.provider }} azureCredentials: ${{ secrets.AZURE_E2E_IAM_CREDENTIALS }} - gcpServiceAccount: "constellation-iam-e2e@constellation-331613.iam.gserviceaccount.com" + gcpServiceAccount: "iam-e2e@constellation-e2e.iam.gserviceaccount.com" e2e-upgrade: strategy: diff --git a/.github/workflows/e2e-test-tf-module.yml b/.github/workflows/e2e-test-tf-module.yml index 0ea8f91b7c..c55a9dbf71 100644 --- a/.github/workflows/e2e-test-tf-module.yml +++ b/.github/workflows/e2e-test-tf-module.yml @@ -159,7 +159,8 @@ jobs: run: | cat > terraform.tfvars <