Skip to content

Commit d3fcf31

Browse files
joaopapereiraa-b
authored andcommitted
Pass namespace of the lease to the reusable workflow
Signed-off-by: João Pereira <[email protected]>
1 parent 4a16286 commit d3fcf31

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

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

+4
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}}
@@ -70,6 +73,7 @@ jobs:
7073
- name: Install Tools
7174
env:
7275
account_token: ${{ secrets.SHEPHERD_SERVICE_ACCOUNT_TOKEN }}
76+
namespace: ${{ inputs.lease-namespace || vars.POOL_NAMESPACE || 'tas-devex' }}
7377
run: |
7478
go version
7579

.github/workflows/tests-integration.yml

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

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

286288
run-cats-cf-env:
@@ -298,6 +300,7 @@ jobs:
298300
name: cats
299301
gitRef: ${{needs.get-sha.outputs.gitRef}}
300302
lease-id: ${{ needs.claim-env.outputs.leaseid }}
303+
lease-namespace: ${{ inputs.lease_namespace }}
301304
secrets: inherit
302305

303306
unclaim-env:

0 commit comments

Comments
 (0)