Skip to content

Commit c4ad870

Browse files
Adjust OLM tests and update initContainer image
1 parent feeeee7 commit c4ad870

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

.github/workflows/olm_tests.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,15 @@ jobs:
7272
kubectl create namespace openshift-operators
7373
kubectl create -f .github/resources-olm-upgrade/operatorgroup.yaml
7474
75+
- name: Install Required KubeRay CRDs for Pod Initialisation
76+
run: |
77+
kubectl apply -f https://github.com/raw/ray-project/kuberay/v1.1.0/ray-operator/config/crd/bases/ray.io_rayclusters.yaml
78+
kubectl apply -f https://github.com/raw/ray-project/kuberay/v1.1.0/ray-operator/config/crd/bases/ray.io_rayjobs.yaml
79+
kubectl apply -f https://github.com/raw/ray-project/kuberay/v1.1.0/ray-operator/config/crd/bases/ray.io_rayservices.yaml
80+
kubectl wait --for=condition=Established crd/rayclusters.ray.io --timeout=60s
81+
kubectl wait --for=condition=Established crd/rayjobs.ray.io --timeout=60s
82+
kubectl wait --for=condition=Established crd/rayservices.ray.io --timeout=60s
83+
7584
- name: Deploy latest released CodeFlare operator from OLM
7685
id: deploy
7786
run: |

config/manager/manager.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ spec:
3232
capabilities:
3333
drop:
3434
- "ALL"
35-
image: alpine/k8s:1.27.11
35+
image: registry.access.redhat.com/ubi8/ubi-minimal@sha256:f30dbf77b075215f6c827c269c073b5e0973e5cea8dacdf7ecb6a19c868f37f2
3636
command:
3737
- sh
3838
- -c
@@ -41,7 +41,7 @@ spec:
4141
CRDS="rayclusters.ray.io rayjobs.ray.io rayservices.ray.io"
4242
for crd in $CRDS; do
4343
echo "Checking for $crd"
44-
until kubectl get crd $crd; do
44+
until oc get crd $crd; do
4545
echo "$crd not available yet, retrying in 10 seconds..."
4646
sleep 10
4747
done

0 commit comments

Comments
 (0)