Commit 5f4c8c24 authored by Kubernetes Submit Queue's avatar Kubernetes Submit Queue Committed by GitHub

Merge pull request #33787 from madhusudancs/fed-sleep-cleanup

Automatic merge from submit-queue [Federation] Sleep for 2m (arbitrarily chosen) to let the underlying clusters to clean up all the resources they are holding. cc @kubernetes/sig-cluster-federation @colhom @nikhiljindal Ref: Issue #33388, Issue #28615, Issue #31624.
parents 47e611b9 6f86dabd
...@@ -32,13 +32,23 @@ prepare-e2e ...@@ -32,13 +32,23 @@ prepare-e2e
if [[ "${FEDERATION:-}" == "true" ]];then if [[ "${FEDERATION:-}" == "true" ]];then
source "${KUBE_ROOT}/federation/cluster/common.sh" source "${KUBE_ROOT}/federation/cluster/common.sh"
for zone in ${E2E_ZONES};do for zone in ${E2E_ZONES};do
# bring up e2e cluster # bring down an e2e cluster
( (
set-federation-zone-vars "$zone" set-federation-zone-vars "$zone"
cleanup-federation-api-objects || echo "Couldn't cleanup federation api objects" cleanup-federation-api-objects || echo "Couldn't cleanup federation api objects"
# TODO(madhusudancs): This is an arbitrary amount of sleep to give Kubernetes
# clusters enough time to delete the underlying cloud provider resources
# corresponding to the Kubernetes resources we deleted as part of the test
# teardowns. It is shameful that we are doing this, but this is just a bandage
# to stop the bleeding. Please don't use this pattern anywhere. Remove this
# when proper cloud provider cleanups are implemented in the individual test
# `AfterEach` blocks.
sleep 2m
test-teardown test-teardown
) )
done done
else else
test-teardown test-teardown
fi fi
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment