File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments