From d8460a321ff0b26c4538e80247aaaf5bf955b04b Mon Sep 17 00:00:00 2001 From: Qu Xuan Date: Thu, 20 Feb 2020 11:04:22 +0800 Subject: [PATCH] fix: add aliyun new region info --- pkg/apis/compute/cloudregions_const.go | 1 + pkg/multicloud/aliyun/latitud_and_longitude.go | 1 + 2 files changed, 2 insertions(+) diff --git a/pkg/apis/compute/cloudregions_const.go b/pkg/apis/compute/cloudregions_const.go index b7af1ac4fe..173b4287a5 100644 --- a/pkg/apis/compute/cloudregions_const.go +++ b/pkg/apis/compute/cloudregions_const.go @@ -36,6 +36,7 @@ const ( CITY_TAIPEI = "Taipei" //台北市 CITY_KAOHSIUNG = "Kaohsiung" //高雄市 CITY_CHENG_DU = "Chengdu" //成都 + CITY_HE_YUAN = "HeYuan" //河源 CITY_CHONG_QING = "Chongqing" //重庆 CITY_LAN_ZHOU = "Lanzhou" //兰州 CITY_TAI_YUAN = "Taiyuan" //太原 diff --git a/pkg/multicloud/aliyun/latitud_and_longitude.go b/pkg/multicloud/aliyun/latitud_and_longitude.go index dfc8b1a953..f6faa02926 100644 --- a/pkg/multicloud/aliyun/latitud_and_longitude.go +++ b/pkg/multicloud/aliyun/latitud_and_longitude.go @@ -29,6 +29,7 @@ var LatitudeAndLongitude = map[string]cloudprovider.SGeographicInfo{ "cn-shenzhen": {Latitude: 22.543097, Longitude: 114.057861, City: api.CITY_SHEN_ZHEN, CountryCode: api.COUNTRY_CODE_CN}, "cn-hongkong": {Latitude: 22.396427, Longitude: 114.109497, City: api.CITY_HONG_KONG, CountryCode: api.COUNTRY_CODE_CN}, "cn-chengdu": {Latitude: 30.572815, Longitude: 104.066803, City: api.CITY_CHENG_DU, CountryCode: api.COUNTRY_CODE_CN}, + "cn-heyuan": {Latitude: 23.7292717, Longitude: 114.6965786, City: api.CITY_HE_YUAN, CountryCode: api.COUNTRY_CODE_CN}, "ap-northeast-1": {Latitude: 35.709026, Longitude: 139.731995, City: api.CITY_TOKYO, CountryCode: api.COUNTRY_CODE_JP}, "ap-southeast-1": {Latitude: 1.352083, Longitude: 103.819839, City: api.CITY_SINGAPORE, CountryCode: api.COUNTRY_CODE_SG}, "ap-southeast-2": {Latitude: -33.868820, Longitude: 151.209290, City: api.CITY_SYDNEY, CountryCode: api.COUNTRY_CODE_AU},