Skip to content

Commit 69b53a8

Browse files
committed
Pass namespace of the lease to the reusable workflow
Signed-off-by: João Pereira <[email protected]>
1 parent e1b7a8b commit 69b53a8

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

.github/workflows/tests-integration-reusable.yml

+4-1
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ on:
2222
lease-id:
2323
required: true
2424
type: string
25+
lease-namespace:
26+
required: false
27+
type: string
2528
gitRef:
2629
type: string
2730
default: ${{github.event.workflow_run.head_sha}}
@@ -71,7 +74,7 @@ jobs:
7174
- name: Install Tools
7275
env:
7376
account_token: ${{ secrets.SHEPHERD_SERVICE_ACCOUNT_TOKEN }}
74-
namespace: ${{ vars.POOL_NAMESPACE || 'tas-devex' }}
77+
namespace: ${{ inputs.lease-namespace || vars.POOL_NAMESPACE || 'tas-devex' }}
7578
run: |
7679
go version
7780

.github/workflows/tests-integration.yml

+3
Original file line numberDiff line numberDiff line change
@@ -265,6 +265,7 @@ jobs:
265265
name: Integration
266266
gitRef: ${{needs.get-sha.outputs.gitRef}}
267267
lease-id: ${{ needs.claim-env.outputs.leaseid }}
268+
lease-namespace: ${{ inputs.lease_namespace }}
268269
nodes: ${{ inputs.nodes }}
269270
secrets: inherit
270271

@@ -282,6 +283,7 @@ jobs:
282283
name: Integration client creds
283284
gitRef: ${{needs.get-sha.outputs.gitRef}}
284285
lease-id: ${{ needs.claim-env.outputs.leaseid }}
286+
lease-namespace: ${{ inputs.lease_namespace }}
285287
secrets: inherit
286288

287289
run-cats-cf-env:
@@ -299,6 +301,7 @@ jobs:
299301
name: cats
300302
gitRef: ${{needs.get-sha.outputs.gitRef}}
301303
lease-id: ${{ needs.claim-env.outputs.leaseid }}
304+
lease-namespace: ${{ inputs.lease_namespace }}
302305
secrets: inherit
303306

304307
unclaim-env:

0 commit comments

Comments
 (0)