File tree Expand file tree Collapse file tree 1 file changed +5
-10
lines changed
Expand file tree Collapse file tree 1 file changed +5
-10
lines changed Original file line number Diff line number Diff line change 2121
2222OPERATOR_NAMESPACE=openshift-marketplace
2323
24- # Similar part was done in CI Framework CRC jobs
25- # https://review.rdoproject.org/cgit/config/tree/playbooks/crc/files/ensure_services_up.sh
26- not_running_pods=$( oc get pods --no-headers -n ${OPERATOR_NAMESPACE} 2> /dev/null | grep -viE ' running|completed' )
27- if [ -z " $not_running_pods " ]; then
28- echo " All $OPERATOR_NAMESPACE pods seems to me fine"
29- else
30- # Workaround for problematic openshift-marketplace
31- # More info: https://github.com/crc-org/crc/issues/4109#issuecomment-2042497411
32- oc delete pods --all -n " ${OPERATOR_NAMESPACE} "
33- oc wait pod --for=delete -n " $OPERATOR_NAMESPACE " -l olm.managed --timeout=${TIMEOUT}
24+ oc get pods -n ${OPERATOR_NAMESPACE} | grep " CrashLoopBackOff"
25+ if [ $? -eq 0 ]; then
26+ oc patch OperatorHub cluster --type json -p ' [{"op": "add", "path": "/spec/disableAllDefaultSources", "value": true}]'
27+ oc wait pod --for=delete -n ${OPERATOR_NAMESPACE} -l olm.managed --timeout=${TIMEOUT}
28+ oc patch OperatorHub cluster --type json -p ' [{"op": "add", "path": "/spec/disableAllDefaultSources", "value": false}]'
3429 oc wait pod -n ${OPERATOR_NAMESPACE} -l olm.managed --for condition=Ready
3530fi
3631
You can’t perform that action at this time.
0 commit comments