Commit 26c0fe32 authored by Madhusudan.C.S's avatar Madhusudan.C.S

Cleanup federation components and wait for it only once in a test cycle.

parent d4bcf3ed
...@@ -31,10 +31,7 @@ prepare-e2e ...@@ -31,10 +31,7 @@ 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
# bring down an e2e cluster
(
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 # TODO(madhusudancs): This is an arbitrary amount of sleep to give Kubernetes
...@@ -46,6 +43,10 @@ if [[ "${FEDERATION:-}" == "true" ]];then ...@@ -46,6 +43,10 @@ if [[ "${FEDERATION:-}" == "true" ]];then
# `AfterEach` blocks. # `AfterEach` blocks.
sleep 2m sleep 2m
for zone in ${E2E_ZONES};do
# bring down an e2e cluster
(
set-federation-zone-vars "$zone"
test-teardown test-teardown
) )
done done
......
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