Skip to content

Commit c0825c4

Browse files
cherry-pick: feat: add Delos cloud names (#7320) (#7321)
Co-authored-by: John Stupka <[email protected]>
1 parent 2cfd035 commit c0825c4

File tree

4 files changed

+18
-0
lines changed

4 files changed

+18
-0
lines changed

pkg/agent/datamodel/const.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff 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.

pkg/agent/datamodel/osimageconfig.go

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff 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,

pkg/agent/datamodel/sig_config.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff 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"):

pkg/agent/utils.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)