Skip to content

Commit

Permalink
Make ACR Zone redundancy toggable
Browse files Browse the repository at this point in the history
  • Loading branch information
janboll committed Feb 14, 2025
1 parent 8079b86 commit 72e2a5c
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 2 deletions.
2 changes: 2 additions & 0 deletions config/config.msft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,9 @@ clouds:

# ACR
svcAcrName: arohcpsvcint
svcAcrZoneRedundancy: Disabled
ocpAcrName: arohcpocpint
ocpAcrZoneRedundancy: Disabled

# Frontend
frontend:
Expand Down
6 changes: 6 additions & 0 deletions config/config.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -769,6 +769,9 @@
"ocpAcrName": {
"type": "string"
},
"ocpAcrZoneRedundancy": {
"type": "string"
},
"oidcStorageAccountName": {
"type": "string"
},
Expand Down Expand Up @@ -862,6 +865,9 @@
},
"svcAcrName": {
"type": "string"
},
"svcAcrZoneRedundancy": {
"type": "string"
}
},
"additionalProperties": false,
Expand Down
3 changes: 3 additions & 0 deletions dev-infrastructure/configurations/global-acr.tmpl.bicepparam
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,6 @@ param ocpAcrName = '{{ .ocpAcrName }}'
param ocpAcrSku = 'Premium'

param location = '{{ .global.region }}'

param svcAcrZoneRedundancy = '{{ .svcAcrZoneRedundancy }}'
param ocpAcrZoneRedundancy = '{{ .ocpAcrZoneRedundancy }}'
7 changes: 5 additions & 2 deletions dev-infrastructure/templates/global-acr.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,16 @@ param svcAcrSku string

param location string

param svcAcrZoneRedundancy string = locationIsZoneRedundant(location) ? 'Enabled' : 'Disabled'
param ocpAcrZoneRedundancy string = locationIsZoneRedundant(location) ? 'Enabled' : 'Disabled'

module ocpAcr '../modules/acr/acr.bicep' = {
name: ocpAcrName
params: {
acrName: ocpAcrName
acrSku: ocpAcrSku
location: location
zoneRedundancy: locationIsZoneRedundant(location) ? 'Enabled' : 'Disabled'
zoneRedundancy: svcAcrZoneRedundancy
}
}

Expand All @@ -27,6 +30,6 @@ module svcAcr '../modules/acr/acr.bicep' = {
acrName: svcAcrName
acrSku: svcAcrSku
location: location
zoneRedundancy: locationIsZoneRedundant(location) ? 'Enabled' : 'Disabled'
zoneRedundancy: ocpAcrZoneRedundancy
}
}

0 comments on commit 72e2a5c

Please sign in to comment.