@@ -39,7 +39,9 @@ use_local_disk() {
3939deploy_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
42- kubectl create -f https://raw.githubusercontent.com/rook/rook/master/deploy/examples/operator.yaml
42+ curl https://raw.githubusercontent.com/rook/rook/master/deploy/examples/operator.yaml -o operator.yaml
43+ sed -i ' s|image: docker.io/rook/ceph:master|image: subham03/rook:race|g' operator.yaml
44+ kubectl create -f operator.yaml
4345 kubectl create -f https://raw.githubusercontent.com/rook/rook/master/deploy/examples/csi-operator.yaml
4446
4547 wait_for_operator_pod_to_be_ready_state rook-ceph
@@ -65,6 +67,7 @@ deploy_rook_in_custom_namespace() {
6567 kubectl create -f https://raw.githubusercontent.com/rook/rook/master/deploy/examples/crds.yaml
6668
6769 curl -f https://raw.githubusercontent.com/rook/rook/master/deploy/examples/operator.yaml -o operator.yaml
70+ sed -i ' s|image: docker.io/rook/ceph:master|image: subham03/rook:race|g' operator.yaml
6871 deploy_with_custom_ns " $OPERATOR_NS " " $CLUSTER_NS " operator.yaml
6972
7073 curl -f https://raw.githubusercontent.com/rook/rook/master/deploy/examples/csi-operator.yaml -o csi-operator.yaml
@@ -139,15 +142,15 @@ deploy_csi_driver_rados_namespace() {
139142 kubectl create -f cephblockpoolradosnamespace_a.yaml
140143 wait_for_cephblockpoolradosnamespace_ready_state " rook-ceph" " namespace-a" 60
141144
142- # Restart the rook-ceph-operator pod to ensure it picks up new resources
143- operator_pod=$( kubectl -n rook-ceph get pods -l app=rook-ceph-operator -o jsonpath=' {.items[0].metadata.name}' )
144- if [ -n " $operator_pod " ]; then
145- kubectl -n rook-ceph delete pod " $operator_pod "
146- echo " rook-ceph-operator pod $operator_pod deleted. Waiting for it to restart..."
147- else
148- echo " rook-ceph-operator pod not found, skipping restart."
149- fi
150- wait_for_operator_pod_to_be_ready_state rook-ceph
145+ # # Restart the rook-ceph-operator pod to ensure it picks up new resources
146+ # operator_pod=$(kubectl -n rook-ceph get pods -l app=rook-ceph-operator -o jsonpath='{.items[0].metadata.name}')
147+ # if [ -n "$operator_pod" ]; then
148+ # kubectl -n rook-ceph delete pod "$operator_pod"
149+ # echo "rook-ceph-operator pod $operator_pod deleted. Waiting for it to restart..."
150+ # else
151+ # echo "rook-ceph-operator pod not found, skipping restart."
152+ # fi
153+ # wait_for_operator_pod_to_be_ready_state rook-ceph
151154
152155 curl https://raw.githubusercontent.com/rook/rook/refs/heads/master/deploy/examples/radosnamespace.yaml -o cephblockpoolradosnamespace_b.yaml
153156 sed -i " s|blockPoolName: replicapool|blockPoolName: blockpool-rados-ns |g" cephblockpoolradosnamespace_b.yaml
@@ -297,6 +300,7 @@ wait_for_ceph_cluster_to_be_ready() {
297300 done
298301 echo "CephCluster my-cluster is now in Ready state!"
299302EOF
303+ timeout_command_exit_code
300304}
301305
302306timeout_command_exit_code () {
0 commit comments