diff --git a/selectel/mks.go b/selectel/mks.go index 89c619ef..bff4acfb 100644 --- a/selectel/mks.go +++ b/selectel/mks.go @@ -23,6 +23,7 @@ const ( ru3MKSClusterV1Endpoint = "https://ru-3.mks.selcloud.ru/v1" ru7MKSClusterV1Endpoint = "https://ru-7.mks.selcloud.ru/v1" ru8MKSClusterV1Endpoint = "https://ru-8.mks.selcloud.ru/v1" + ru9MKSClusterV1Endpoint = "https://ru-9.mks.selcloud.ru/v1" ) func getMKSClusterV1Endpoint(region string) (endpoint string) { @@ -37,6 +38,8 @@ func getMKSClusterV1Endpoint(region string) (endpoint string) { endpoint = ru7MKSClusterV1Endpoint case ru8Region: endpoint = ru8MKSClusterV1Endpoint + case ru9Region: + endpoint = ru9MKSClusterV1Endpoint } return diff --git a/selectel/mks_test.go b/selectel/mks_test.go index 1f260538..b2c6d3a7 100644 --- a/selectel/mks_test.go +++ b/selectel/mks_test.go @@ -15,6 +15,7 @@ func TestGetMKSClusterV1Endpoint(t *testing.T) { ru3Region: ru3MKSClusterV1Endpoint, ru7Region: ru7MKSClusterV1Endpoint, ru8Region: ru8MKSClusterV1Endpoint, + ru9Region: ru9MKSClusterV1Endpoint, } for region, expected := range expectedEndpoints { diff --git a/selectel/regions.go b/selectel/regions.go index e15c4d45..e8d3a637 100644 --- a/selectel/regions.go +++ b/selectel/regions.go @@ -13,6 +13,7 @@ const ( ru3Region = "ru-3" ru7Region = "ru-7" ru8Region = "ru-8" + ru9Region = "ru-9" ) func expandVPCV2Regions(rawRegions *schema.Set) []string { @@ -40,6 +41,7 @@ func validateRegion(region string) error { ru3Region: {}, ru7Region: {}, ru8Region: {}, + ru9Region: {}, } _, isValid := valid[region] diff --git a/selectel/regions_test.go b/selectel/regions_test.go index a302e307..dc9fc9fd 100644 --- a/selectel/regions_test.go +++ b/selectel/regions_test.go @@ -28,6 +28,7 @@ func TestValidateRegionOk(t *testing.T) { ru3Region, ru7Region, ru8Region, + ru9Region, } for _, region := range validRegions { diff --git a/selectel/resource_selectel_mks_cluster_v1.go b/selectel/resource_selectel_mks_cluster_v1.go index 204587e6..8307f9fb 100644 --- a/selectel/resource_selectel_mks_cluster_v1.go +++ b/selectel/resource_selectel_mks_cluster_v1.go @@ -65,6 +65,7 @@ func resourceMKSClusterV1() *schema.Resource { ru3Region, ru7Region, ru8Region, + ru9Region, }, false), }, "kube_version": {