Skip to content

Commit fd1ea31

Browse files
authored
Unset GKE zone/region for zonal/regional clusters (#198)
Passing Kokoro job: https://source.cloud.google.com/results/invocations/a579962a-4364-4412-ad96-cc5f0f01e412
1 parent 9171fc8 commit fd1ea31

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.kokoro/psm_interop_kokoro_lib.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -851,13 +851,19 @@ psm::tools::log() {
851851
# Globals:
852852
# GKE_CLUSTER_NAME: Set to reflect the cluster name to use
853853
# GKE_CLUSTER_ZONE: Set to reflect the cluster zone to use.
854+
# This variable will be empty for regional clusters.
854855
# GKE_CLUSTER_REGION: Set to reflect the cluster region to use (for regional clusters).
856+
# This variable will be empty for zonal clusters.
855857
# Arguments:
856858
# The cluster identifier
857859
# Outputs:
858860
# Writes the output to stdout, stderr
859861
#######################################
860862
activate_gke_cluster() {
863+
# Reset the variables: activate_gke_cluster may be called multiple times.
864+
GKE_CLUSTER_REGION=""
865+
GKE_CLUSTER_ZONE=""
866+
GKE_CLUSTER_NAME=""
861867
case $1 in
862868
GKE_CLUSTER_PSM_LB)
863869
GKE_CLUSTER_NAME="psm-interop-lb-primary"

0 commit comments

Comments
 (0)