Skip to content
This repository was archived by the owner on Jun 26, 2024. It is now read-only.

Commit c11d97d

Browse files
committed
Use olm annotations in OLM tests
Signed-off-by: Andy Sadler <[email protected]>
1 parent 8db2019 commit c11d97d

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

.github/workflows/pr-checks.yaml

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,14 +107,26 @@ jobs:
107107
with:
108108
names: operator-refs-${{github.event.pull_request.number}}-${{github.event.pull_request.head.sha}}
109109

110-
- name: Acceptance tests
110+
- name: Deploy SBO
111111
if: ${{ steps.check-skip-acceptance.outputs.can_skip != 'true' }}
112112
timeout-minutes: 60
113113
run: |
114114
source ./operator.refs
115115
export CATSRC_NAME=sbo-pr-checks
116116
117-
make SKIP_REGISTRY_LOGIN=true -o registry-login test-acceptance-with-bundle
117+
make SKIP_REGISTRY_LOGIN=true -o registry-login deploy-from-index-image
118+
119+
- name: Patch SBO to accept OLM annotations
120+
if: ${{ steps.check-skip-acceptance.outputs.can_skip != 'true' }}
121+
run: |
122+
kubectl patch deployments.apps -n service-binding-operator service-binding-operator --type=json -p='[{"op": "add", "path": "/spec/template/spec/containers/0/args/-", "value": "--olm-descriptor"}]'
123+
124+
- name: Acceptance tests
125+
if: ${{ steps.check-skip-acceptance.outputs.can_skip != 'true' }}
126+
timeout-minutes: 60
127+
run: |
128+
source ./operator.refs
129+
make TEST_ACCEPTANCE_START_SBO=remote test-acceptance
118130
119131
- name: Collect Kube resources
120132
if: ${{ steps.check-skip-acceptance.outputs.can_skip != 'true' && always() }}

0 commit comments

Comments
 (0)