Skip to content

Commit f7591d8

Browse files
committed
Enhance ScheduledSparkApplication workflow in GitHub Actions
- Added setup step for Kind cluster to streamline testing environment. - Updated oc-installer action to a specific commit for stability. - Removed unnecessary oc login step and adjusted namespace for RBAC checks and smoke tests. - Simplified execution of RBAC preflight checks and smoke tests using Makefile commands.
1 parent 0138087 commit f7591d8

File tree

1 file changed

+10
-16
lines changed

1 file changed

+10
-16
lines changed

.github/workflows/scheduledspark-smoke.yaml

Lines changed: 10 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -26,33 +26,27 @@ jobs:
2626
- name: Checkout
2727
uses: actions/checkout@v5
2828

29+
- name: Setup Kind cluster
30+
uses: ./.github/actions/kind-cluster-setup
31+
2932
- name: Install oc
30-
uses: redhat-actions/oc-installer@v1
33+
uses: redhat-actions/oc-installer@35b60c3f9757ae4301521556e1b75ff6f59f8d7c
3134
with:
3235
oc_version: 'latest'
3336

34-
- name: oc login
35-
env:
36-
OPENSHIFT_SERVER: ${{ inputs.openshift_server }}
37-
OPENSHIFT_TOKEN: ${{ inputs.openshift_token }}
38-
run: |
39-
oc login "${OPENSHIFT_SERVER}" --token="${OPENSHIFT_TOKEN}" --insecure-skip-tls-verify=true
40-
oc whoami
37+
- name: Install Spark Operator (keep installed)
38+
run: CLEANUP=false make -C examples/openshift operator-install
4139

4240
- name: RBAC preflight
4341
env:
44-
NAMESPACE: ${{ inputs.namespace }}
42+
NAMESPACE: spark-operator
4543
CONTROLLER_SA: spark-operator-controller
46-
run: |
47-
chmod +x examples/openshift/tests/check-scheduledspark-rbac.sh
48-
examples/openshift/tests/check-scheduledspark-rbac.sh
44+
run: make -C examples/openshift scheduledspark-rbac-check
4945

5046
- name: ScheduledSparkApplication smoke
5147
env:
52-
NAMESPACE: ${{ inputs.namespace }}
48+
NAMESPACE: spark-operator
5349
SCHED_NAME: rbac-scheduled-smoke
5450
TIMEOUT_SECONDS: "180"
55-
run: |
56-
chmod +x examples/openshift/tests/test-scheduledspark-smoke.sh
57-
examples/openshift/tests/test-scheduledspark-smoke.sh
51+
run: make -C examples/openshift scheduledspark-smoke
5852

0 commit comments

Comments
 (0)