Skip to content

Commit af80778

Browse files
committed
ci: with new rook release install csi operator
with rook latest version we made csi-operator default deployment for csi-driver, so we need to install csi-operator in CI to it happy. Signed-off-by: subhamkrai <[email protected]>
1 parent 2f7f1a4 commit af80778

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

tests/github-action-helper.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,9 @@ deploy_rook() {
4040
kubectl create -f https://raw.githubusercontent.com/rook/rook/master/deploy/examples/common.yaml
4141
kubectl create -f https://raw.githubusercontent.com/rook/rook/master/deploy/examples/crds.yaml
4242
kubectl create -f https://raw.githubusercontent.com/rook/rook/master/deploy/examples/operator.yaml
43+
kubectl create -f https://raw.githubusercontent.com/rook/rook/master/deploy/examples/csi-operator.yaml
44+
45+
wait_for_operator_pod_to_be_ready_state rook-ceph
4346
curl https://raw.githubusercontent.com/rook/rook/master/deploy/examples/cluster-test.yaml -o cluster-test.yaml
4447
sed -i "s|#deviceFilter:|deviceFilter: ${BLOCK/\/dev\//}|g" cluster-test.yaml
4548
sed -i '0,/count: 1/ s/count: 1/count: 3/' cluster-test.yaml
@@ -64,6 +67,10 @@ deploy_rook_in_custom_namespace() {
6467
curl -f https://raw.githubusercontent.com/rook/rook/master/deploy/examples/operator.yaml -o operator.yaml
6568
deploy_with_custom_ns "$OPERATOR_NS" "$CLUSTER_NS" operator.yaml
6669

70+
curl -f https://raw.githubusercontent.com/rook/rook/master/deploy/examples/csi-operator.yaml -o csi-operator.yaml
71+
sed -i "s|namespace: rook-ceph|namespace: ${OPERATOR_NS}|g" csi-operator.yaml
72+
kubectl create -f csi-operator.yaml
73+
6774
curl https://raw.githubusercontent.com/rook/rook/master/deploy/examples/cluster-test.yaml -o cluster-test.yaml
6875
sed -i "s|#deviceFilter:|deviceFilter: ${BLOCK/\/dev\//}|g" cluster-test.yaml
6976
sed -i '0,/count: 1/ s/count: 1/count: 3/' cluster-test.yaml

0 commit comments

Comments
 (0)