@@ -57,28 +57,43 @@ jobs:
5757 NODE_OPTIONS : --max_old_space_size=16384
5858 run : xvfb-run npm run test:coverage --silent
5959
60+ # Install and start KinD cluster
6061 - name : Start KinD cluster
6162 if : (success() || failure()) && runner.os == 'Linux'
6263 uses : helm/kind-action@v1.14.0
6364 with :
6465 version : v0.31.0
6566 node_image : kindest/node:v1.34.0
6667
67- - name : Configure cluster
68+ # Configure cluster
69+ - name : Install operators (deterministic, no OLM)
6870 if : (success() || failure()) && runner.os == 'Linux'
6971 run : |
70- curl -sL https://github.com/operator-framework/operator-lifecycle-manager/releases/download/v0.19.1/install.sh | bash -s v0.19.1
71- kubectl create -f https://operatorhub.io/install/service-binding-operator.yaml
72- kubectl create -f https://operatorhub.io/install/cloudnative-pg.yaml
73- nb=0
74- echo -n "Waiting for operator to show up "
75- while [ "$nb" != "2" ]
76- do
77- echo -n "."
78- sleep 1
79- nb=`kubectl get pods -n operators --no-headers --ignore-not-found | grep Running | wc -l`
80- done
81- echo CLUSTER_URL=`kubectl cluster-info | sed -n -e "s/\x1B\[[0-9;]*[a-zA-Z]//g" -e '1s/.*running at \(.*\)$/\1/p'` >> $GITHUB_ENV
72+ set -euo pipefail
73+
74+ echo "Installing CloudNativePG (new version)..."
75+ kubectl apply -f https://raw.githubusercontent.com/cloudnative-pg/cloudnative-pg/release-1.28/releases/cnpg-1.28.1.yaml
76+
77+ echo "Installing Service Binding Operator..."
78+ kubectl apply -f https://github.com/redhat-developer/service-binding-operator/releases/download/v1.3.0/service-binding-operator.yaml
79+
80+ echo "Waiting for operators..."
81+
82+ kubectl wait --for=condition=Available deployment \
83+ -n cnpg-system \
84+ --all \
85+ --timeout=180s
86+
87+ kubectl wait --for=condition=Available deployment \
88+ -n service-binding-operator \
89+ --all \
90+ --timeout=180s
91+
92+ echo "Extracting cluster URL..."
93+ # echo CLUSTER_URL=$(kubectl cluster-info | sed -n -e "s/\x1B\[[0-9;]*[a-zA-Z]//g" -e '1s/.*running at \(.*\)$/\1/p') >> $GITHUB_ENV
94+ CLUSTER_URL=$(kubectl config view --minify -o jsonpath='{.clusters[0].cluster.server}')
95+ echo "CLUSTER_URL=$CLUSTER_URL" >> $GITHUB_ENV
96+
8297 # UI tests fail under linux
8398 # Run UI tests
8499 - name : Run UI Tests
0 commit comments