@@ -538,17 +538,10 @@ test_4_uninstall_lifecycle() {
538538 assert_not_exists " istiod deployment" deployment/istiod -n istio-system
539539 assert_no_stuck_istiorevision
540540
541- # Dependency namespaces persist (cleanupNamespaces=false)
541+ # All namespaces persist (cleanupNamespaces=false, keep annotation )
542542 assert_exists " istio-system namespace (persists)" namespace/istio-system
543-
544- # Wait for helm-managed namespaces to finish terminating before re-install
545- log " Waiting for terminating namespaces to be fully gone..."
546543 for ns in redhat-ods-operator redhat-ods-applications " ${CM_NS} " ; do
547- if kubectl get namespace " $ns " & > /dev/null; then
548- log " waiting for namespace/$ns to terminate..."
549- kubectl wait --for=delete " namespace/$ns " --timeout=120s 2> /dev/null \
550- || warn " namespace/$ns still terminating after 120s"
551- fi
544+ assert_exists " ${ns} namespace (persists)" " namespace/${ns} "
552545 done
553546
554547 # Phase B: reinstall with cleanupNamespaces=true, then uninstall
@@ -564,6 +557,8 @@ test_4_uninstall_lifecycle() {
564557 assert_not_exists " ${CM_NS} namespace" " namespace/${CM_NS} "
565558 assert_not_exists " istio-system namespace" namespace/istio-system
566559 assert_not_exists " cert-manager-operator namespace" namespace/cert-manager-operator
560+ assert_not_exists " redhat-ods-operator namespace" namespace/redhat-ods-operator
561+ assert_not_exists " redhat-ods-applications namespace" namespace/redhat-ods-applications
567562}
568563
569564# ─── Main ───────────────────────────────────────────────────────────────────
0 commit comments