Skip to content

Commit

Permalink
Removing Gateway and StorageAccount domain attributes (#3984)
Browse files Browse the repository at this point in the history
* Removing Gateway and StorageAccount domain attributes

* Linting
  • Loading branch information
azoppiserpa authored Dec 4, 2024
1 parent 98dc017 commit 47590c6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
2 changes: 0 additions & 2 deletions pkg/deploy/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@ type Configuration struct {
GatewayDomains []string `json:"gatewayDomains,omitempty"`
GatewayFeatures []string `json:"gatewayFeatures,omitempty"`
GatewayMDSDConfigVersion *string `json:"gatewayMdsdConfigVersion,omitempty" value:"required"`
GatewayStorageAccountDomain *string `json:"gatewayStorageAccountDomain,omitempty" value:"required"`
GatewayVMSize *string `json:"gatewayVmSize,omitempty"`
GatewayVMSSCapacity *int `json:"gatewayVmssCapacity,omitempty"`
GlobalResourceGroupName *string `json:"globalResourceGroupName,omitempty" value:"required"`
Expand All @@ -93,7 +92,6 @@ type Configuration struct {
RPParentDomainName *string `json:"rpParentDomainName,omitempty" value:"required"`
RPVMSSCapacity *int `json:"rpVmssCapacity,omitempty"`
SSHPublicKey *string `json:"sshPublicKey,omitempty"`
StorageAccountDomain *string `json:"storageAccountDomain,omitempty" value:"required"`
SubscriptionResourceGroupName *string `json:"subscriptionResourceGroupName,omitempty" value:"required"`
SubscriptionResourceGroupLocation *string `json:"subscriptionResourceGroupLocation,omitempty" value:"required"`
VMSize *string `json:"vmSize,omitempty" value:"required"`
Expand Down
12 changes: 5 additions & 7 deletions pkg/deploy/devconfig.go
Original file line number Diff line number Diff line change
Expand Up @@ -107,13 +107,11 @@ func DevConfig(_env env.Core) (*Config, error) {
GatewayResourceGroupName: azureUniquePrefix + "-gwy-" + _env.Location(),
RPResourceGroupName: azureUniquePrefix + "-aro-" + _env.Location(),
Configuration: &Configuration{
AzureCloudName: &_env.Environment().ActualCloudName,
DatabaseAccountName: ptr.To(azureUniquePrefix + "-aro-" + _env.Location()),
GatewayStorageAccountDomain: ptr.To(azureUniquePrefix + "gwy" + _env.Location() + ".blob." + _env.Environment().StorageEndpointSuffix),
KeyvaultDNSSuffix: &_env.Environment().KeyVaultDNSSuffix,
KeyvaultPrefix: &keyvaultPrefix,
StorageAccountDomain: ptr.To(azureUniquePrefix + "aro" + _env.Location() + ".blob." + _env.Environment().StorageEndpointSuffix),
OIDCStorageAccountName: ptr.To(oidcStorageAccountName),
AzureCloudName: &_env.Environment().ActualCloudName,
DatabaseAccountName: ptr.To(azureUniquePrefix + "-aro-" + _env.Location()),
KeyvaultDNSSuffix: &_env.Environment().KeyVaultDNSSuffix,
KeyvaultPrefix: &keyvaultPrefix,
OIDCStorageAccountName: ptr.To(oidcStorageAccountName),
},
},
},
Expand Down

0 comments on commit 47590c6

Please sign in to comment.