-
Notifications
You must be signed in to change notification settings - Fork 69
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
move global infra from hcp repo (#978)
add global infra pipeline * parent dns zones * MSI for pipeline runs Signed-off-by: Gerd Oberlechner <[email protected]> Co-authored-by: Jonathan Chang <[email protected]> Co-authored-by: Gerd Oberlechner <[email protected]>
- Loading branch information
1 parent
ea5be9f
commit 70c5226
Showing
11 changed files
with
70 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 5 additions & 0 deletions
5
dev-infrastructure/configurations/global-infra.tmpl.bicepparam
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
using '../templates/global-infra.bicep' | ||
|
||
param globalMSIName = '{{ .global.globalMSIName }}' | ||
param cxParentZoneName = '{{ .baseDnsZoneName }}' | ||
param svcParentZoneName = '{{ .svcParentZoneName }}' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
$schema: "pipeline.schema.v1" | ||
serviceGroup: Microsoft.Azure.ARO.HCP.Global | ||
rolloutName: Global Resource Rollout | ||
resourceGroups: | ||
- name: {{ .global.rg }} | ||
subscription: {{ .global.subscription }} | ||
steps: | ||
- name: global-infra | ||
action: ARM | ||
template: templates/global-infra.bicep | ||
parameters: configurations/global-infra.tmpl.bicepparam |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
@description('The global msi name') | ||
param globalMSIName string | ||
|
||
@description('The cxParentZone Domain') | ||
param cxParentZoneName string | ||
|
||
@description('The svcParentZone Domain') | ||
param svcParentZoneName string | ||
|
||
resource ev2MSI 'Microsoft.ManagedIdentity/userAssignedIdentities@2023-01-31' = { | ||
name: globalMSIName | ||
location: resourceGroup().location | ||
} | ||
|
||
resource cxParentZone 'Microsoft.Network/dnsZones@2018-05-01' = { | ||
name: cxParentZoneName | ||
location: 'global' | ||
} | ||
|
||
resource svcParentZone 'Microsoft.Network/dnsZones@2018-05-01' = { | ||
name: svcParentZoneName | ||
location: 'global' | ||
} |