Skip to content

Commit 23f71dc

Browse files
committed
Add integration tests to run with & without audience arg
Signed-off-by: Rakshith R <[email protected]>
1 parent 2cada20 commit 23f71dc

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

.github/workflows/integration-test.yaml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,11 @@ on:
66

77
jobs:
88
minikube-ci:
9-
name: Intergration test
9+
name: Integration test (with${{ matrix.audience == false && 'out' || '' }} audience parameter)
1010
runs-on: ubuntu-latest
11+
strategy:
12+
matrix:
13+
audience: [false, true]
1114
steps:
1215
- name: Check out the repo
1316
uses: actions/checkout@v4
@@ -30,6 +33,13 @@ jobs:
3033
run: |
3134
./scripts/deploy-snapshot-controller.sh deploy
3235
36+
- name: Configure audience parameter
37+
run: |
38+
if [ "${{ matrix.audience }}" = "true" ]; then
39+
echo "Enabling audience parameter"
40+
sed -i 's/# - "--audience=test-backup-client"/- "--audience=test-backup-client"/' deploy/example/csi-driver/csi-driver-with-snapshot-metadata-sidecar.yaml
41+
fi
42+
3343
- name: Deploy csi-hostpath-driver
3444
run: |
3545
kubectl apply -f ./client/config/crd/cbt.storage.k8s.io_snapshotmetadataservices.yaml

0 commit comments

Comments
 (0)