Skip to content

Commit 2685ad0

Browse files
authored
Update tests instructions for common troubleshooting (#3802)
* update tests instructions for common troubleshooting
1 parent ac2cfc6 commit 2685ad0

File tree

3 files changed

+18
-0
lines changed

3 files changed

+18
-0
lines changed

tests/Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,10 @@ delete-gke-cluster: ## Delete the GKE cluster
166166
add-local-ip-to-cluster: ## Add local IP to the GKE cluster master-authorized-networks
167167
./scripts/add-local-ip-auth-networks.sh
168168

169+
.PHONY: update-firewall-with-local-ip
170+
update-firewall-with-local-ip: ## Update the firewall rule with local IP address
171+
./scripts/update-firewall-with-local-ip.sh
172+
169173
HELM_PARAMETERS += --set nginxGateway.name=nginx-gateway --set nginx.service.type=ClusterIP --skip-schema-validation
170174

171175
# this target is used to install the gateway-api CRDs from the main branch (only used in the nightly CI job)

tests/README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,13 @@ make create-gke-cluster
9191
make add-local-ip-to-cluster
9292
```
9393

94+
> Note: If you already have a GKE cluster and your public IP has changed, update the firewall rule to include your new client IP.
95+
> This restores connectivity when you’re unable to reach the VM.
96+
97+
```makefile
98+
make update-firewall-with-local-ip
99+
```
100+
94101
### Step 2 - Build and Load Images
95102

96103
Loading the images only applies to a `kind` cluster. If using a cloud provider, you will need to tag and push
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/usr/bin/env bash
2+
3+
set -eo pipefail
4+
5+
source scripts/vars.env
6+
7+
gcloud compute firewall-rules update ${NETWORK_TAGS} --source-ranges ${SOURCE_IP_RANGE}

0 commit comments

Comments
 (0)