diff --git a/snc-library.sh b/snc-library.sh index 8a3b2f96..fb28dbcb 100755 --- a/snc-library.sh +++ b/snc-library.sh @@ -243,6 +243,7 @@ function no_operators_degraded() { function all_pods_are_running_completed() { local ignoreNamespace=$1 + ${OC} delete pods --field-selector=status.phase=Failed -A ! ${OC} get pod --no-headers --all-namespaces --field-selector=metadata.namespace!="${ignoreNamespace}" | grep -v Running | grep -v Completed }