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

Commit

Permalink
Delete namespaces immediately, without waiting for pods to stop
Browse files Browse the repository at this point in the history
* Use `kubectl delete --now` to ensure fast deletion of namespaces between tests.

Fixes: #157
  • Loading branch information
wallrj committed Dec 1, 2017
1 parent 61acfee commit 0c0786b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hack/libe2e.sh
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ function retry() {
function kube_delete_namespace_and_wait() {
local namespace=$1
# Delete any previous namespace and wait for Kubernetes to finish deleting.
kubectl delete namespace "${namespace}" || true
kubectl delete --now namespace "${namespace}" || true
retry TIMEOUT=300 not kubectl get namespace ${namespace}
}

Expand Down

0 comments on commit 0c0786b

Please sign in to comment.