mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-24 20:24:09 +00:00
[Federation] Sleep for 2m (arbitrarily chosen) to let the underlying clusters to clean up all the resources they are holding.
This commit is contained in:
parent
6c5a187171
commit
6f86dabd8c
@ -30,15 +30,25 @@ source "${KUBE_ROOT}/cluster/kube-util.sh"
|
|||||||
prepare-e2e
|
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"
|
||||||
test-teardown
|
|
||||||
)
|
# TODO(madhusudancs): This is an arbitrary amount of sleep to give Kubernetes
|
||||||
done
|
# 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
|
||||||
|
)
|
||||||
|
done
|
||||||
else
|
else
|
||||||
test-teardown
|
test-teardown
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user