in main.go [417:423]
func getClusterLocality() (string, error) {
locality, err := getFromMetadata("http://metadata.google.internal/computeMetadata/v1/instance/attributes/cluster-location")
if err != nil {
return "", fmt.Errorf("failed to determine GKE cluster locality: %s", err)
}
return string(locality), nil
}