Skip to content

Commit d2ed165

Browse files
committed
Update
1 parent c945ed5 commit d2ed165

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/run-rollouts-e2e-tests.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ function wait_until_pods_running() {
1212
# Wait for there to be only a single Pod line in 'oc get pods' (there should be no more 'terminating' pods, etc)
1313
timeout="true"
1414
for i in {1..30}; do
15-
local num_pods="$(oc get pods --no-headers -n $1 | wc -l 2>/dev/null)"
15+
local num_pods="$(oc get pods --no-headers -n $1 | grep openshift-gitops-operator-controller-manager | wc -l 2>/dev/null)"
1616

1717
# Check the number of lines
1818
if [[ "$num_lines" == "1" ]]; then
@@ -29,7 +29,7 @@ function wait_until_pods_running() {
2929
fi
3030

3131
for i in {1..150}; do # timeout after 5 minutes
32-
local pods="$(oc get pods --no-headers -n $1 2>/dev/null)"
32+
local pods="$(oc get pods --no-headers -n $1 | grep openshift-gitops-operator-controller-manager 2>/dev/null)"
3333
# write it to tempfile
3434
TempFile=$(mktemp)
3535
oc get pods --no-headers -n $1 2>/dev/null >$TempFile

0 commit comments

Comments
 (0)