Fix alternative Azure cloud names (#37133)

This commit is contained in:
Sergey Kostrukov
2021-08-13 14:58:05 +01:00
committed by GitHub
parent 4e98ade2af
commit dd0a906fb7
2 changed files with 76 additions and 0 deletions
+11
View File
@@ -31,28 +31,39 @@ func normalizeAzureCloud(cloudName string) string {
switch strings.ToLower(cloudName) {
// Public
case "azurecloud":
fallthrough
case "azurepublic":
fallthrough
case "azurepubliccloud":
fallthrough
case "public":
return AzurePublic
// China
case "azurechina":
fallthrough
case "azurechinacloud":
fallthrough
case "china":
return AzureChina
// US Government
case "azureusgovernment":
fallthrough
case "azureusgovernmentcloud":
fallthrough
case "usgov":
fallthrough
case "usgovernment":
return AzureUSGovernment
// Germany
case "azuregermancloud":
fallthrough
case "azuregermany":
fallthrough
case "german":
fallthrough
case "germany":
return AzureGermany
}