Skip to content
This repository was archived by the owner on Apr 4, 2023. It is now read-only.

Commit 0c0786b

Browse files
committed
Delete namespaces immediately, without waiting for pods to stop
* Use `kubectl delete --now` to ensure fast deletion of namespaces between tests. Fixes: #157
1 parent 61acfee commit 0c0786b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hack/libe2e.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ function retry() {
4848
function kube_delete_namespace_and_wait() {
4949
local namespace=$1
5050
# Delete any previous namespace and wait for Kubernetes to finish deleting.
51-
kubectl delete namespace "${namespace}" || true
51+
kubectl delete --now namespace "${namespace}" || true
5252
retry TIMEOUT=300 not kubectl get namespace ${namespace}
5353
}
5454

0 commit comments

Comments
 (0)