Skip to content

Commit

Permalink
prepare global resources pipeline
Browse files Browse the repository at this point in the history
Signed-off-by: Gerd Oberlechner <[email protected]>
  • Loading branch information
geoberle committed Nov 28, 2024
1 parent a50d8dc commit 20b0dd0
Show file tree
Hide file tree
Showing 8 changed files with 50 additions and 11 deletions.
8 changes: 6 additions & 2 deletions config/config.msft.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
$schema: config.schema.json
defaults:
region: {{ .ctx.region }}

# Resourcegroups
globalRG: global-shared-resources
regionRG: '{{ .ctx.region }}-shared-resources'
regionRG: 'global-shared-resources'

global:
rg: global-shared-resources
subscription: hcp-{{ .ctx.region }}

# General AKS config
kubernetesVersion: 1.30.5
Expand Down
18 changes: 15 additions & 3 deletions config/config.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -142,8 +142,20 @@
"cosmosDB"
]
},
"globalRG": {
"type": "string"
"global": {
"type": "object",
"properties": {
"rg": {
"type": "string"
},
"subscription": {
"type": "string"
}
},
"required": [
"rg",
"subscription"
]
},
"hypershift": {
"type": "object",
Expand Down Expand Up @@ -610,7 +622,7 @@
"externalDNS",
"firstPartyAppClientId",
"frontend",
"globalRG",
"global",
"hypershift",
"hypershiftOperator",
"imageSync",
Expand Down
6 changes: 4 additions & 2 deletions config/config.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
$schema: config.schema.json
defaults:
region: {{ .ctx.region }}
# Resourcegroups
globalRG: global
regionRG: hcp-underlay-{{ .ctx.regionShort }}

global:
rg: global-shared-resources
subscription: hcp-{{ .ctx.region }}

# General AKS config
kubernetesVersion: 1.30.5
istioVersion: "asm-1-22"
Expand Down
5 changes: 4 additions & 1 deletion config/public-cloud-cs-pr.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,10 @@
"private": false
}
},
"globalRG": "global",
"global": {
"rg": "global-shared-resources",
"subscription": "hcp-westus3"
},
"hypershift": {
"additionalInstallArg": "--tech-preview-no-upgrade",
"externalDNSManagedIdentityName": "external-dns",
Expand Down
5 changes: 4 additions & 1 deletion config/public-cloud-dev.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,10 @@
"private": false
}
},
"globalRG": "global",
"global": {
"rg": "global-shared-resources",
"subscription": "hcp-westus3"
},
"hypershift": {
"additionalInstallArg": "--tech-preview-no-upgrade",
"externalDNSManagedIdentityName": "external-dns",
Expand Down
5 changes: 4 additions & 1 deletion config/public-cloud-msft-int.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,10 @@
"private": false
}
},
"globalRG": "global-shared-resources",
"global": {
"rg": "global-shared-resources",
"subscription": "hcp-westus3"
},
"hypershift": {
"additionalInstallArg": "--tech-preview-no-upgrade",
"externalDNSManagedIdentityName": "external-dns",
Expand Down
5 changes: 4 additions & 1 deletion config/public-cloud-personal-dev.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,10 @@
"private": false
}
},
"globalRG": "global",
"global": {
"rg": "global-shared-resources",
"subscription": "hcp-westus3"
},
"hypershift": {
"additionalInstallArg": "--tech-preview-no-upgrade",
"externalDNSManagedIdentityName": "external-dns",
Expand Down
9 changes: 9 additions & 0 deletions dev-infrastructure/svc-pipeline.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,15 @@
serviceGroup: Microsoft.Azure.ARO.HCP.Service.Infra
rolloutName: Service Cluster Rollout
resourceGroups:
# deploying the global resources does not belong into this pipeline
# this is just for testing purposes and deserves its own pipeline
- name: {{ .global.rg }}
subscription: {{ .global.subscription }}
steps:
- name: acr-ocp
action: ARM
template: templates/dev-acr.bicep
parameters: configurations/acr-ocp.tmpl.bicepparam
- name: {{ .svc.rg }}
subscription: {{ .svc.subscription }}
aksCluster: {{ .aksName }}
Expand Down

0 comments on commit 20b0dd0

Please sign in to comment.