Skip to content

Commit 7837ff2

Browse files
committed
Add Azure Stack as a valid environment
Adds AzureStack as a valid cloud environment. The value "HybridEnvironment" is the value provided by the Azure autorest package. It would be possible to have a different user-facing value, such as AzureStackCloud, but internally within the code it is necessary to check for the value "HybridEnvironment" returned by autorest. This commit opts to use a single value, rather than separate user-facing and internal values.
1 parent 85d64b9 commit 7837ff2

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

api/v1beta1/types_class.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ type AzureClusterClassSpec struct {
4848
// - GermanCloud: "AzureGermanCloud"
4949
// - PublicCloud: "AzurePublicCloud"
5050
// - USGovernmentCloud: "AzureUSGovernmentCloud"
51+
// - StackCloud: "HybridEnvironment"
5152
//
5253
// Note that values other than the default must also be accompanied by corresponding changes to the
5354
// aso-controller-settings Secret to configure ASO to refer to the non-Public cloud. ASO currently does
@@ -186,6 +187,7 @@ type AzureManagedControlPlaneClassSpec struct {
186187
// - PublicCloud: "AzurePublicCloud"
187188
// - USGovernmentCloud: "AzureUSGovernmentCloud"
188189
//
190+
//
189191
// Note that values other than the default must also be accompanied by corresponding changes to the
190192
// aso-controller-settings Secret to configure ASO to refer to the non-Public cloud. ASO currently does
191193
// not support referring to multiple different clouds in a single installation. The following fields must

azure/defaults.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@ const (
4545
ChinaCloudName = "AzureChinaCloud"
4646
// USGovernmentCloudName is the name of the Azure US Government cloud.
4747
USGovernmentCloudName = "AzureUSGovernmentCloud"
48+
// StackCloudName is the name for Azure Stack hybrid cloud environments.
49+
StackCloudName = "HybridEnvironment"
4850
)
4951

5052
const (

0 commit comments

Comments
 (0)