From ada5fd0d1b3199e3c2dd02399d876e9abff305d8 Mon Sep 17 00:00:00 2001 From: Qu Xuan Date: Thu, 25 Feb 2021 10:22:04 +0800 Subject: [PATCH] fix(region): add azure new region --- pkg/apis/compute/cloudregions_const.go | 4 +++- pkg/multicloud/azure/geographicinfo.go | 2 ++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/pkg/apis/compute/cloudregions_const.go b/pkg/apis/compute/cloudregions_const.go index 82d14352a5..90319f16b3 100644 --- a/pkg/apis/compute/cloudregions_const.go +++ b/pkg/apis/compute/cloudregions_const.go @@ -114,6 +114,7 @@ const ( CITY_SOUTH_CAROLINA = "South Carolina" //南卡罗来纳州 CITY_SALT_LAKE_CITY = "Salt Lake City" //盐湖城 CITY_LAS_VEGAS = "Las Vegas" //拉斯维加斯 + CITY_PHOENIX = "Phoenix" //菲尼克斯 // 英国 CITY_LONDON = "London" //伦敦 @@ -150,7 +151,8 @@ const ( CITY_STOCKHOLM = "Stockholm" //斯德哥尔摩 // 巴西 - CITY_SAO_PAULO = "Sao Paulo" //圣保罗 + CITY_SAO_PAULO = "Sao Paulo" //圣保罗 + CITY_RIO_DE_JANEIRO = "Rio de Janeiro" // 里约热内卢 // 智利 CITY_SANTIAGO = "Santiago" // 圣地亚哥 diff --git a/pkg/multicloud/azure/geographicinfo.go b/pkg/multicloud/azure/geographicinfo.go index 34ae4272ad..aa4a65c0f3 100644 --- a/pkg/multicloud/azure/geographicinfo.go +++ b/pkg/multicloud/azure/geographicinfo.go @@ -60,6 +60,8 @@ var AzureGeographicInfo = map[string]cloudprovider.SGeographicInfo{ "norwayeast": {City: api.CITY_OSLO, CountryCode: api.COUNTRY_CODE_NO}, // 奥斯陆 "germanywestcentral": {City: api.CITY_FRANKFURT, CountryCode: api.COUNTRY_CODE_DE}, // 法兰克福 "germanynorth": {City: api.CITY_DELMENHORST, CountryCode: api.COUNTRY_CODE_DE}, // 代尔门霍斯特 + "westus3": {City: api.CITY_PHOENIX, CountryCode: api.COUNTRY_CODE_US}, + "brazilsoutheast": {City: api.CITY_RIO_DE_JANEIRO, CountryCode: api.COUNTRY_CODE_BR}, "chinaeast": {City: api.CITY_SHANG_HAI, CountryCode: api.COUNTRY_CODE_CN}, "chinaeast2": {City: api.CITY_SHANG_HAI, CountryCode: api.COUNTRY_CODE_CN},