From d3fcf31b961d0b7fcf31424efdadfeecbe249c27 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Pereira?= Date: Thu, 24 Oct 2024 16:44:06 -0500 Subject: [PATCH] Pass namespace of the lease to the reusable workflow MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: João Pereira --- .github/workflows/tests-integration-reusable.yml | 4 ++++ .github/workflows/tests-integration.yml | 3 +++ 2 files changed, 7 insertions(+) diff --git a/.github/workflows/tests-integration-reusable.yml b/.github/workflows/tests-integration-reusable.yml index f295495226..c4ee7160c7 100644 --- a/.github/workflows/tests-integration-reusable.yml +++ b/.github/workflows/tests-integration-reusable.yml @@ -22,6 +22,9 @@ on: lease-id: required: true type: string + lease-namespace: + required: false + type: string gitRef: type: string default: ${{github.event.workflow_run.head_sha}} @@ -70,6 +73,7 @@ jobs: - name: Install Tools env: account_token: ${{ secrets.SHEPHERD_SERVICE_ACCOUNT_TOKEN }} + namespace: ${{ inputs.lease-namespace || vars.POOL_NAMESPACE || 'tas-devex' }} run: | go version diff --git a/.github/workflows/tests-integration.yml b/.github/workflows/tests-integration.yml index e763e9fa78..123006ff0f 100644 --- a/.github/workflows/tests-integration.yml +++ b/.github/workflows/tests-integration.yml @@ -264,6 +264,7 @@ jobs: name: Integration gitRef: ${{needs.get-sha.outputs.gitRef}} lease-id: ${{ needs.claim-env.outputs.leaseid }} + lease-namespace: ${{ inputs.lease_namespace }} nodes: ${{ inputs.nodes }} secrets: inherit @@ -281,6 +282,7 @@ jobs: name: Integration client creds gitRef: ${{needs.get-sha.outputs.gitRef}} lease-id: ${{ needs.claim-env.outputs.leaseid }} + lease-namespace: ${{ inputs.lease_namespace }} secrets: inherit run-cats-cf-env: @@ -298,6 +300,7 @@ jobs: name: cats gitRef: ${{needs.get-sha.outputs.gitRef}} lease-id: ${{ needs.claim-env.outputs.leaseid }} + lease-namespace: ${{ inputs.lease_namespace }} secrets: inherit unclaim-env: