ci: improve the canary toolbox operator pod check
the wait command is provided by kubernetes so
instead of using manually shell hack using the wait
command
Signed-off-by: parth-gr <paarora@redhat.com>
(cherry picked from commit 64d3df4fcd)
This commit is contained in:
1 parent
927b628ed6
commit
f995cd1efa
1 file changed
+2
-2
@@ -302,8 +302,8 @@ jobs:
|
||||
- name: test toolbox-operator-image pod
|
||||
run: |
|
||||
tests/scripts/github-action-helper.sh create_operator_toolbox
|
||||
toolbox=$(kubectl get pod -l app=rook-ceph-tools-operator-image -n rook-ceph -o jsonpath='{.items[*].metadata.name}')
|
||||
timeout 120 sh -c "while kubectl get pod $toolbox -nrook-ceph -o jsonpath='{.items[*].status.phase}'|grep -qE 'Running'; do echo 'waiting for operator toolbox pod to start'; sleep 5; done"
|
||||
# waiting for toolbox operator image pod to get ready
|
||||
kubectl -n rook-ceph wait --for=condition=ready pod -l app=rook-ceph-tools-operator-image --timeout=180s
|
||||
|
||||
- name: check-ownerreferences
|
||||
run: tests/scripts/github-action-helper.sh check_ownerreferences
|
||||
|
||||
Reference in new issue
Block a user