Skip to content

Commit 6dc68d7

Browse files
committed
Add echos for debugging
1 parent faf23f1 commit 6dc68d7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,10 @@ gcloud compute instances create "${RESOURCE_NAME}" --project="${GKE_PROJECT}" --
4747
if [ "${ADD_VM_IP_AUTH_NETWORKS}" = "true" ]; then
4848
EXTERNAL_IP=$(gcloud compute instances describe "${RESOURCE_NAME}" --project="${GKE_PROJECT}" --zone="${GKE_CLUSTER_ZONE}" \
4949
--format='value(networkInterfaces[0].accessConfigs[0].natIP)')
50+
echo "External IP of the VM is: ${EXTERNAL_IP}"
5051
CURRENT_AUTH_NETWORK=$(gcloud container clusters describe "${GKE_CLUSTER_NAME}" --zone="${GKE_CLUSTER_ZONE}" \
5152
--format="value(masterAuthorizedNetworksConfig.cidrBlocks[0])" | sed 's/cidrBlock=//')
53+
echo "Current GKE master authorized networks: ${CURRENT_AUTH_NETWORK}"
5254
gcloud container clusters update "${GKE_CLUSTER_NAME}" --zone="${GKE_CLUSTER_ZONE}" --enable-master-authorized-networks --master-authorized-networks="${EXTERNAL_IP}"/32,"${CURRENT_AUTH_NETWORK}"
5355
fi
5456

0 commit comments

Comments
 (0)