Skip to content

Commit

Permalink
New region in GKE (#937)
Browse files Browse the repository at this point in the history
* new region

* Using fmt.Errorf

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
  • Loading branch information
bathina2 and mergify[bot] committed Mar 22, 2021
1 parent 65ebd2d commit a22a821
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion pkg/blockstorage/gcepd/gcepd.go
Original file line number Diff line number Diff line change
Expand Up @@ -647,6 +647,12 @@ func staticRegionToZones(region string) ([]string, error) {
"australia-southeast1-b",
"australia-southeast1-c",
}, nil
case "europe-central2":
return []string{
"europe-central2-a",
"europe-central2-b",
"europe-central2-c",
}, nil
case "europe-north1":
return []string{
"europe-north1-a",
Expand Down Expand Up @@ -739,7 +745,7 @@ func staticRegionToZones(region string) ([]string, error) {
"us-west4-c",
}, nil
}
return nil, errors.New("cannot get availability zones for region")
return nil, fmt.Errorf("cannot get availability zones for region %s", region)
}

func isMultiZone(az string) bool {
Expand Down

0 comments on commit a22a821

Please sign in to comment.