mirror of
https://github.com/optim-enterprises-bv/kubernetes.git
synced 2025-11-02 11:18:16 +00:00
Split federation-{up,down} from e2e-{up,down}.
This commit is contained in:
@@ -49,17 +49,17 @@ function unjoin_clusters() {
|
||||
|
||||
unjoin_clusters
|
||||
|
||||
cleanup-federation-api-objects || echo "Couldn't cleanup federation api objects"
|
||||
|
||||
"${KUBE_ROOT}/cluster/kubectl.sh" delete namespace \
|
||||
--context="${HOST_CLUSTER_CONTEXT}" \
|
||||
"${FEDERATION_NAMESPACE}"
|
||||
|
||||
# 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
|
||||
if cleanup-federation-api-objects; then
|
||||
# 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 tear downs. 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.
|
||||
# Also, we wait only if the cleanup succeeds.
|
||||
sleep 2m
|
||||
else
|
||||
echo "Couldn't cleanup federation api objects"
|
||||
fi
|
||||
|
||||
@@ -97,7 +97,6 @@ function join_clusters() {
|
||||
--context="${FEDERATION_NAME}" \
|
||||
--secret-name="${context//_/-}" # Replace "_" by "-"
|
||||
|
||||
|
||||
# Create kube-dns configmap in each cluster for kube-dns to accept
|
||||
# federation queries.
|
||||
# TODO: This shouldn't be required after
|
||||
|
||||
Reference in New Issue
Block a user