-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pipeline definition for infra + RP https://issues.redhat.com/browse/ARO-12212
- Loading branch information
Showing
22 changed files
with
918 additions
and
150 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
SHELL = /bin/bash | ||
|
||
COMMIT = $(shell git rev-parse --short=7 HEAD) | ||
ARO_HCP_BASE_IMAGE ?= ${ARO_HCP_IMAGE_ACR}.azurecr.io | ||
ARO_HCP_BACKEND_IMAGE ?= $(ARO_HCP_BASE_IMAGE)/arohcpbackend:$(COMMIT) | ||
|
||
deploy: | ||
BACKEND_MI_CLIENT_ID=$(shell az identity show \ | ||
-g ${RESOURCEGROUP} \ | ||
-n backend \ | ||
--query clientId);\ | ||
ISTO_VERSION=$(shell az aks show -n ${AKS_NAME} -g ${RESOURCEGROUP} --query serviceMeshProfile.istio.revisions[-1] -o tsv) && \ | ||
DB_URL=$(shell az cosmosdb show -n ${DB_NAME} -g ${RESOURCEGROUP} --query documentEndpoint -o tsv) && \ | ||
kubectl create namespace aro-hcp --dry-run=client -o json | kubectl apply -f - && \ | ||
kubectl label namespace aro-hcp "istio.io/rev=$${ISTO_VERSION}" --overwrite=true && \ | ||
helm upgrade --install aro-hcp-backend-dev \ | ||
deploy/helm/backend/ \ | ||
--set configMap.databaseName=${DB_NAME} \ | ||
--set configMap.databaseUrl="$${DB_URL}" \ | ||
--set configMap.backendMiClientId="$${BACKEND_MI_CLIENT_ID}" \ | ||
--set serviceAccount.workloadIdentityClientId="$${BACKEND_MI_CLIENT_ID}" \ | ||
--set configMap.currentVersion=${ARO_HCP_BACKEND_IMAGE} \ | ||
--set configMap.location=${LOCATION} \ | ||
--set deployment.imageName=${ARO_HCP_BACKEND_IMAGE} \ | ||
--namespace aro-hcp | ||
.PHONY: deploy |
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,21 @@ | ||
serviceGroup: Microsoft.Azure.ARO.Test | ||
rolloutName: RP - Backend | ||
resourceGroups: | ||
- name: {{ .svc.rg }} | ||
subscription: {{ .svc.subscription }} | ||
aksCluster: {{ .aksName }} | ||
steps: | ||
- name: deploy | ||
action: Shell | ||
command: ["/bin/bash", "-c", "make -f Makefile.deploy deploy"] | ||
env: | ||
- name: ARO_HCP_IMAGE_ACR | ||
configRef: svcAcrName | ||
- name: LOCATION | ||
configRef: region | ||
- name: RESOURCEGROUP | ||
configRef: svc.rg | ||
- name: AKS_NAME | ||
configRef: aksName | ||
- name: DB_NAME | ||
configRef: frontend.cosmosDB.name |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
serviceGroup: Microsoft.Azure.ARO.Test | ||
rolloutName: Region Rollout | ||
resourceGroups: | ||
- name: {{ .regionRG }} | ||
subscription: {{ .serviceClusterSubscription }} | ||
steps: | ||
- name: region | ||
action: ARM | ||
template: templates/region.bicep | ||
parameters: configurations/region.tmpl.bicepparam | ||
- name: region | ||
action: ARM | ||
template: modules/modules/metrics.bicep | ||
parameters: configurations/metrics.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,25 @@ | ||
serviceGroup: Microsoft.Azure.ARO.Test | ||
rolloutName: Service Cluster Rollout | ||
resourceGroups: | ||
- name: {{ .serviceClusterRG }} | ||
subscription: {{ .serviceClusterSubscription }} | ||
aksCluster: {{ .aksName }} | ||
steps: | ||
- name: svc | ||
action: ARM | ||
template: templates/svc-cluster.bicep | ||
parameters: configurations/svc-cluster.tmpl.bicepparam | ||
- name: enable-metrics | ||
action: Shell | ||
command: ["/bin/bash", "-c", "scripts/enable-aks-metrics.sh"] | ||
env: | ||
- name: RESOURCEGROUP | ||
configRef: serviceClusterRG | ||
- name: AKS_NAME | ||
configRef: aksName | ||
- name: GRAFANA_RESOURCEGROUP | ||
configRef: regionRG | ||
- name: MONITORING_WORKSPACE_NAME | ||
configRef: monitoringWorkspaceName | ||
- name: GRAFANA_NAME | ||
configRef: grafanaName |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
serviceGroup: Microsoft.Azure.ARO.Test | ||
rolloutName: RP - Frontend | ||
resourceGroups: | ||
- name: {{ .serviceClusterRG }} | ||
subscription: {{ .serviceClusterSubscription }} | ||
aksCluster: {{ .aksName }} | ||
steps: | ||
- name: deploy | ||
action: Shell | ||
command: ["/bin/bash", "-c", "make deploy"] | ||
env: | ||
- name: ARO_HCP_IMAGE_ACR | ||
configRef: svcAcrName | ||
- name: LOCATION | ||
configRef: region | ||
- name: RESOURCEGROUP | ||
configRef: serviceClusterRG | ||
- name: AKS_NAME | ||
configRef: aksName | ||
- name: DB_NAME | ||
configRef: frontendCosmosDBName |
Oops, something went wrong.