You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Failf("Timed out waiting for service %s in namespace %s to expose endpoints %v (%v elapsed)", serviceName, namespace, expectedEndpoints, serviceStartTimeout)
Logf("Pod %s %s on node %s remains, has deletion timestamp %s", namespace, pod.Name, pod.Spec.NodeName, pod.DeletionTimestamp)
540
+
remaining=append(remaining, pod.Name)
541
+
ifpod.DeletionTimestamp==nil {
542
+
missingTimestamp=true
543
+
}
544
+
}
545
+
}
546
+
547
+
// a timeout occured
548
+
iferr!=nil {
549
+
ifmissingTimestamp {
550
+
returnfmt.Errorf("namespace %s was not deleted within limit: %v, some pods were not marked with a deletion timestamp, pods remaining: %v", namespace, err, remaining)
551
+
}
552
+
returnfmt.Errorf("namespace %s was not deleted within limit: %v, pods remaining: %v", namespace, err, remaining)
553
+
}
554
+
// pods were not deleted but the namespace was deleted
555
+
iflen(remaining) >0 {
556
+
returnfmt.Errorf("pods remained within namespace %s after deletion: %v", namespace, remaining)
0 commit comments