Failf("Timed out waiting for service %s in namespace %s to expose endpoints %v (%v elapsed)",serviceName,namespace,expectedEndpoints,serviceStartTimeout)
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)
remaining=append(remaining,pod.Name)
ifpod.DeletionTimestamp==nil{
missingTimestamp=true
}
}
}
// a timeout occured
iferr!=nil{
ifmissingTimestamp{
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)
}
returnfmt.Errorf("namespace %s was not deleted within limit: %v, pods remaining: %v",namespace,err,remaining)
}
// pods were not deleted but the namespace was deleted
iflen(remaining)>0{
returnfmt.Errorf("pods remained within namespace %s after deletion: %v",namespace,remaining)