File tree Expand file tree Collapse file tree 4 files changed +18
-0
lines changed
Expand file tree Collapse file tree 4 files changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -80,6 +80,8 @@ const (
8080 AzureChinaCloud = "AzureChinaCloud"
8181 // AzureGermanCloud is a const string reference identifier for german cloud.
8282 AzureGermanCloud = "AzureGermanCloud"
83+ // AzureGermanCloud is a const string reference identifier for german cloud.
84+ AzureGermanyCloud = "AzureGermanyCloud"
8385 // AzureBleuCloud is a const string reference identifier for bleu cloud.
8486 AzureBleuCloud = "AzureBleuCloud"
8587 // AzureUSGovernmentCloud is a const string reference identifier for us government cloud.
Original file line number Diff line number Diff line change @@ -135,6 +135,17 @@ var (
135135 AKS1804Deprecated : AKSUbuntu1804OSImageConfig , // for back-compat
136136 AKSWindows2019PIR : AKSWindowsServer2019OSImageConfig ,
137137 },
138+ AzureGermanyCloud : {
139+ Ubuntu : Ubuntu1604OSImageConfig ,
140+ Ubuntu1804 : Ubuntu1804OSImageConfig ,
141+ Ubuntu1804Gen2 : Ubuntu1804Gen2OSImageConfig ,
142+ RHEL : RHELOSImageConfig ,
143+ AKSUbuntu1604 : AKSUbuntu1604OSImageConfig ,
144+ AKS1604Deprecated : AKSUbuntu1604OSImageConfig , // for back-compat
145+ AKSUbuntu1804 : AKSUbuntu1804OSImageConfig ,
146+ AKS1804Deprecated : AKSUbuntu1804OSImageConfig , // for back-compat
147+ AKSWindows2019PIR : AKSWindowsServer2019OSImageConfig ,
148+ },
138149 USNatCloud : {
139150 Ubuntu : Ubuntu1604OSImageConfig ,
140151 Ubuntu1804 : Ubuntu1804OSImageConfig ,
Original file line number Diff line number Diff line change @@ -65,6 +65,8 @@ func GetCloudTargetEnv(location string) string {
6565 return AzureUSGovernmentCloud
6666 case strings .HasPrefix (loc , "bleu" ):
6767 return AzureBleuCloud
68+ case strings .HasPrefix (loc , "delos" ):
69+ return AzureGermanyCloud
6870 case strings .HasPrefix (strings .ToLower (loc ), "usnat" ):
6971 return USNatCloud
7072 case strings .HasPrefix (strings .ToLower (loc ), "ussec" ):
Original file line number Diff line number Diff line change @@ -311,11 +311,14 @@ func GetCloudTargetEnv(location string) string {
311311 case strings .HasPrefix (loc , "china" ):
312312 return "AzureChinaCloud"
313313 case loc == "germanynortheast" || loc == "germanycentral" :
314+ // Deprecated AzureGermanCloud
314315 return "AzureGermanCloud"
315316 case strings .HasPrefix (loc , "usgov" ) || strings .HasPrefix (loc , "usdod" ):
316317 return "AzureUSGovernmentCloud"
317318 case strings .HasPrefix (loc , "bleu" ):
318319 return "AzureBleuCloud"
320+ case strings .HasPrefix (loc , "delos" ):
321+ return "AzureGermanyCloud"
319322 default :
320323 return "AzurePublicCloud"
321324 }
You can’t perform that action at this time.
0 commit comments