Skip to content

Commit fa7aa8b

Browse files
committed
Debug network auth for IPv6
1 parent 5f50210 commit fa7aa8b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/scripts/create-and-setup-gcp-vm.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,9 @@ if [ "${ADD_VM_IP_AUTH_NETWORKS}" = "true" ]; then
6060

6161
CURRENT_AUTH_NETWORK=$(gcloud container clusters describe "${GKE_CLUSTER_NAME}" --zone="${GKE_CLUSTER_ZONE}" \
6262
--format="value(masterAuthorizedNetworksConfig.cidrBlocks[0])" | sed 's/cidrBlock=//')
63-
echo "Current GKE master authorized networks: ${CURRENT_AUTH_NETWORK}"
63+
64+
TMP_CURRENT_AUTH_NETWORK=$(gcloud container clusters describe "${GKE_CLUSTER_NAME}" --zone="${GKE_CLUSTER_ZONE}"
65+
echo "TMP Current GKE master authorized networks: ${TMP_CURRENT_AUTH_NETWORK}"
6466
gcloud container clusters update "${GKE_CLUSTER_NAME}" --zone="${GKE_CLUSTER_ZONE}" --enable-master-authorized-networks --master-authorized-networks="${EXTERNAL_IP}"/32,"${CURRENT_AUTH_NETWORK}"
6567
fi
6668

0 commit comments

Comments
 (0)