From 63dfa129f465aa7319faadee337fb6e65a6a5beb Mon Sep 17 00:00:00 2001 From: "Madhusudan.C.S" Date: Mon, 23 Jan 2017 12:02:49 -0800 Subject: [PATCH] Use the e2e zone name as the cluster name. This needs a revamp, but for now e2e zone name is used as the unique cluster identifier in our e2e tests and we will continue to use that pattern. --- cluster/kube-util.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/cluster/kube-util.sh b/cluster/kube-util.sh index 9f12aec308..48a8202ba8 100644 --- a/cluster/kube-util.sh +++ b/cluster/kube-util.sh @@ -52,8 +52,12 @@ function set-federation-zone-vars { export OVERRIDE_CONTEXT="${CLUSTER_CONTEXT}" echo "Setting zone vars to: $OVERRIDE_CONTEXT" if [[ "$KUBERNETES_PROVIDER" == "gce" ]];then + # This needs a revamp, but for now e2e zone name is used as the unique + # cluster identifier in our e2e tests and we will continue to use that + # pattern. + export CLUSTER_NAME="${zone}" - export KUBE_GCE_ZONE="$zone" + export KUBE_GCE_ZONE="${zone}" # gcloud has a 61 character limit, and for firewall rules this # prefix gets appended to itself, with some extra information # need tot keep it short