Skip to content

Commit

Permalink
Removing the RP and Gateway SA creation functions
Browse files Browse the repository at this point in the history
  • Loading branch information
azoppiserpa committed Jun 5, 2024
1 parent cc5d9b2 commit 33e117a
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 28 deletions.
9 changes: 0 additions & 9 deletions pkg/deploy/assets/gateway-production.json
Original file line number Diff line number Diff line change
Expand Up @@ -106,15 +106,6 @@
}
},
"resources": [
{
"sku": {
"name": "Standard_LRS"
},
"location": "[resourceGroup().location]",
"name": "[substring(parameters('gatewayStorageAccountDomain'), 0, indexOf(parameters('gatewayStorageAccountDomain'), '.'))]",
"type": "Microsoft.Storage/storageAccounts",
"apiVersion": "2019-06-01"
},
{
"sku": {
"name": "Standard"
Expand Down
9 changes: 0 additions & 9 deletions pkg/deploy/assets/rp-production.json
Original file line number Diff line number Diff line change
Expand Up @@ -535,15 +535,6 @@
"[resourceId('Microsoft.Storage/storageAccounts', substring(parameters('storageAccountDomain'), 0, indexOf(parameters('storageAccountDomain'), '.')))]"
]
},
{
"sku": {
"name": "Standard_LRS"
},
"location": "[resourceGroup().location]",
"name": "[substring(parameters('storageAccountDomain'), 0, indexOf(parameters('storageAccountDomain'), '.'))]",
"type": "Microsoft.Storage/storageAccounts",
"apiVersion": "2019-06-01"
},
{
"properties": {
"severity": 2,
Expand Down
4 changes: 0 additions & 4 deletions pkg/deploy/generator/resources_gateway.go
Original file line number Diff line number Diff line change
Expand Up @@ -419,7 +419,3 @@ func (g *generator) gatewayRBAC() []*arm.Resource {
),
}
}

func (g *generator) gatewayStorageAccount() *arm.Resource {
return g.storageAccount("[substring(parameters('gatewayStorageAccountDomain'), 0, indexOf(parameters('gatewayStorageAccountDomain'), '.'))]", nil, nil)
}
4 changes: 0 additions & 4 deletions pkg/deploy/generator/resources_rp.go
Original file line number Diff line number Diff line change
Expand Up @@ -1559,7 +1559,3 @@ func (g *generator) rpVersionStorageAccount() []*arm.Resource {
},
}
}

func (g *generator) rpStorageAccount() *arm.Resource {
return g.storageAccount("[substring(parameters('storageAccountDomain'), 0, indexOf(parameters('storageAccountDomain'), '.'))]", nil, nil)
}
1 change: 0 additions & 1 deletion pkg/deploy/generator/templates_gateway.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,6 @@ func (g *generator) gatewayTemplate() *arm.Template {
}

t.Resources = append(t.Resources,
g.gatewayStorageAccount(),
g.gatewayLB(),
g.gatewayPLS(),
g.gatewayVMSS(),
Expand Down
1 change: 0 additions & 1 deletion pkg/deploy/generator/templates_rp.go
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,6 @@ func (g *generator) rpTemplate() *arm.Template {
g.rpLB(),
g.rpLBInternal(),
g.rpVMSS(),
g.rpStorageAccount(),
g.rpLBAlert(30.0, 2, "rp-availability-alert", "PT5M", "PT15M", "DipAvailability"), // triggers on all 3 RPs being down for 10min, can't be >=0.3 due to deploys going down to 32% at times.
g.rpLBAlert(67.0, 3, "rp-degraded-alert", "PT15M", "PT6H", "DipAvailability"), // 1/3 backend down for 1h or 2/3 down for 3h in the last 6h
g.rpLBAlert(33.0, 2, "rp-vnet-alert", "PT5M", "PT5M", "VipAvailability")) // this will trigger only if the Azure network infrastructure between the loadBalancers and VMs is down for 3.5min
Expand Down

0 comments on commit 33e117a

Please sign in to comment.