feat: add us-west zone for hetzner

This commit is contained in:
Vincent Carlos 2024-01-03 15:00:24 +00:00
parent eb7dda2fe9
commit 5e13815d4e
2 changed files with 5 additions and 1 deletions

View File

@ -165,6 +165,8 @@ var hetznerZones = []string{
"hel1", "hel1",
// us-east // us-east
"ash", "ash",
// us-west
"hil",
} }
var azureZones = []string{ var azureZones = []string{

View File

@ -33,8 +33,10 @@ func FindRegion(cluster *kops.Cluster) (string, error) {
zoneRegion = "eu-central" zoneRegion = "eu-central"
case "ash": case "ash":
zoneRegion = "us-east" zoneRegion = "us-east"
case "hil":
zoneRegion = "us-west"
default: default:
return "", fmt.Errorf("unknown zone %q for hetzner cloud, known zones are fsn1, nbg1, hel1, ash", subnet.Zone) return "", fmt.Errorf("unknown zone %q for hetzner cloud, known zones are fsn1, nbg1, hel1, ash, hil", subnet.Zone)
} }
if region != "" && zoneRegion != region { if region != "" && zoneRegion != region {