[Federation][init-11] Switch federation e2e tests to use the new federation control plane bootstrap via the kubefed init command.

This commit is contained in:
Madhusudan.C.S
2016-10-31 20:56:04 -07:00
committed by shashidharatd
parent e2a9fc1022
commit 5a7644c502
11 changed files with 88 additions and 35 deletions

View File

@@ -35,11 +35,21 @@ fi
# Federation utils
# Sets the kubeconfig context value for the current cluster.
#
# Vars set:
# CLUSTER_CONTEXT
function kubeconfig-federation-context() {
CLUSTER_CONTEXT="federation-e2e-${KUBERNETES_PROVIDER}-$zone"
}
# Should NOT be called within the global scope, unless setting the desired global zone vars
# This function is currently NOT USED in the global scope
function set-federation-zone-vars {
zone="$1"
export OVERRIDE_CONTEXT="federation-e2e-${KUBERNETES_PROVIDER}-$zone"
kubeconfig-federation-context "${zone}"
export OVERRIDE_CONTEXT="${CLUSTER_CONTEXT}"
echo "Setting zone vars to: $OVERRIDE_CONTEXT"
if [[ "$KUBERNETES_PROVIDER" == "gce" ]];then