Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions tests/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,10 @@ delete-gke-cluster: ## Delete the GKE cluster
add-local-ip-to-cluster: ## Add local IP to the GKE cluster master-authorized-networks
./scripts/add-local-ip-auth-networks.sh

.PHONY: update-firewall-with-local-ip
update-firewall-with-local-ip: ## Update the firewall rule with local IP address
./scripts/update-firewall-with-local-ip.sh

HELM_PARAMETERS += --set nginxGateway.name=nginx-gateway --set nginx.service.type=ClusterIP --skip-schema-validation

# this target is used to install the gateway-api CRDs from the main branch (only used in the nightly CI job)
Expand Down
7 changes: 7 additions & 0 deletions tests/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,13 @@ make create-gke-cluster
make add-local-ip-to-cluster
```

> Note: If you already have a GKE cluster and your public IP has changed, update the firewall rule to include your new client IP.
> This restores connectivity when you’re unable to reach the VM.

```makefile
make update-firewall-with-local-ip
```

### Step 2 - Build and Load Images

Loading the images only applies to a `kind` cluster. If using a cloud provider, you will need to tag and push
Expand Down
7 changes: 7 additions & 0 deletions tests/scripts/update-firewall-with-local-ip.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/usr/bin/env bash

set -eo pipefail

source scripts/vars.env

gcloud compute firewall-rules update ${NETWORK_TAGS} --source-ranges ${SOURCE_IP_RANGE}
Loading