File tree 10 files changed +19
-9
lines changed
10 files changed +19
-9
lines changed Original file line number Diff line number Diff line change @@ -39,10 +39,9 @@ deploy:
39
39
-g ${RESOURCEGROUP} \
40
40
-n backend \
41
41
--query clientId -o tsv) && \
42
- ISTO_VERSION=$$(az aks show -n ${AKS_NAME} -g ${RESOURCEGROUP} --query serviceMeshProfile.istio.revisions[-1] -o tsv ) && \
43
42
DB_URL=$$(az cosmosdb show -n ${DB_NAME} -g ${RESOURCEGROUP} --query documentEndpoint -o tsv ) && \
44
43
kubectl create namespace aro-hcp --dry-run=client -o json | kubectl apply -f - && \
45
- kubectl label namespace aro-hcp " istio.io/rev=$$ {ISTO_VERSION }" --overwrite=true && \
44
+ kubectl label namespace aro-hcp " istio.io/rev=${ISTO_TAG } " --overwrite=true && \
46
45
${HELM_CMD} aro-hcp-backend-dev \
47
46
deploy/helm/backend/ \
48
47
--set configMap.databaseName=${DB_NAME} \
Original file line number Diff line number Diff line change @@ -26,3 +26,5 @@ resourceGroups:
26
26
configRef : frontend.cosmosDB.name
27
27
- name : COMMIT
28
28
configRef : backend.imageTag
29
+ - name : ISTO_TAG
30
+ configRef : svc.istio.tag
Original file line number Diff line number Diff line change @@ -4,9 +4,8 @@ ZONE_NAME ?= "${REGIONAL_DNS_SUBDOMAIN}.${BASE_DNS_ZONE_NAME}"
4
4
5
5
6
6
deploy : provision-shard
7
- @ISTO_VERSION=$(shell az aks show -n ${AKS_NAME} -g ${RESOURCEGROUP} --query serviceMeshProfile.istio.revisions[-1] -o tsv) && \
8
- kubectl create namespace cluster-service --dry-run=client -o json | kubectl apply -f - && \
9
- kubectl label namespace cluster-service " istio.io/rev=$$ {ISTO_VERSION}" --overwrite=true && \
7
+ @kubectl create namespace cluster-service --dry-run=client -o json | kubectl apply -f - && \
8
+ kubectl label namespace cluster-service " istio.io/rev=${ISTO_TAG} " --overwrite=true && \
10
9
AZURE_CS_MI_CLIENT_ID=$(shell az identity show -g ${RESOURCEGROUP} -n clusters-service --query clientId -o tsv) && \
11
10
CS_SERVICE_PRINCIPAL_CREDS_BASE64=' $(shell az keyvault secret show --vault-name "${SERVICE_KV}" --name "aro-hcp-dev-sp-cs" | jq .value -r | base64 | tr -d ' \n ' )' && \
12
11
TENANT_ID=$(shell az account show --query tenantId --output tsv) && \
Original file line number Diff line number Diff line change @@ -72,6 +72,9 @@ resourceGroups:
72
72
configRef : clusterService.azureOperatorsManagedIdentities.imageRegistry.roleName
73
73
- name : OP_CLOUD_NETWORK_CONFIG_ROLE_NAME
74
74
configRef : clusterService.azureOperatorsManagedIdentities.cloudNetworkConfig.roleName
75
+ - name : ISTO_TAG
76
+ configRef : svc.istio.tag
77
+
75
78
76
79
# this is maestro consumer registration stuff
77
80
# this goes away when we have a real registration process
Original file line number Diff line number Diff line change @@ -213,6 +213,7 @@ svc: svc.rg
213
213
configurations/svc-cluster.bicepparam \
214
214
--parameters \
215
215
persist=${PERSIST}
216
+ @TARGET_VERSION=$(ISTIO_TARGET_VERSION ) ISTIOCTL_VERSION=$(ISTIOCTL_VERSION ) TAG=$(ISTIO_TAG ) scripts/istio.sh
216
217
.PHONY : svc
217
218
218
219
svc.enable-aks-metrics :
Original file line number Diff line number Diff line change @@ -16,3 +16,7 @@ OIDC_STORAGE_ACCOUNT ?= {{ .oidcStorageAccountName }}
16
16
CX_KV_NAME ?= {{ .cxKeyVault.name }}
17
17
MSI_KV_NAME ?= {{ .msiKeyVault.name }}
18
18
MGMT_KV_NAME ?= {{ .mgmtKeyVault.name }}
19
+
20
+ ISTIO_TARGET_VERSION ?= {{ .svc.istio.targetVersion }}
21
+ ISTIOCTL_VERSION ?= {{ .svc.istio.istioctlVersion }}
22
+ ISTIO_TAG ?= {{ .svc.istio.tag }}
Original file line number Diff line number Diff line change @@ -49,11 +49,10 @@ deploy:
49
49
--name ${AKS_NAME} \
50
50
--query addonProfiles.azureKeyvaultSecretsProvider.identity.clientId \
51
51
--output tsv); \
52
- ISTO_VERSION=$$(az aks show -n ${AKS_NAME} -g ${RESOURCEGROUP} --query serviceMeshProfile.istio.revisions[-1] -o tsv ) && \
53
52
DB_URL=$$(az cosmosdb show -n ${DB_NAME} -g ${RESOURCEGROUP} --query documentEndpoint -o tsv ) && \
54
53
TENANT_ID=$(shell az account show --query tenantId --output tsv) && \
55
54
kubectl create namespace aro-hcp --dry-run=client -o json | kubectl apply -f - && \
56
- kubectl label namespace aro-hcp " istio.io/rev=$$ {ISTO_VERSION }" --overwrite=true && \
55
+ kubectl label namespace aro-hcp " istio.io/rev=${ISTO_TAG } " --overwrite=true && \
57
56
${HELM_CMD} aro-hcp-frontend-dev \
58
57
deploy/helm/frontend/ \
59
58
--set azure.clientId=$$ {SECRET_STORE_MI_CLIENT_ID} \
Original file line number Diff line number Diff line change @@ -30,3 +30,5 @@ resourceGroups:
30
30
configRef : serviceKeyVault.name
31
31
- name : CERTIFICATE_NAME
32
32
configRef : frontend.cert.name
33
+ - name : ISTO_TAG
34
+ configRef : svc.istio.tag
Original file line number Diff line number Diff line change 2
2
3
3
deploy :
4
4
@kubectl create namespace maestro --dry-run=client -o json | kubectl apply -f -
5
- @ISTO_VERSION=$(shell az aks show -n ${AKS_NAME} -g ${SVC_RG} --query serviceMeshProfile.istio.revisions[-1] -o tsv) && \
6
- kubectl label ${KUBECTL_DRY_RUN} namespace maestro " istio.io/rev=$$ {ISTO_VERSION}" --overwrite=true
5
+ @kubectl label ${KUBECTL_DRY_RUN} namespace maestro " istio.io/rev=${ISTO_TAG} " --overwrite=true
7
6
@EVENTGRID_HOSTNAME=$(shell az resource show -n ${EVENTGRID_NAME} -g ${REGION_RG} --resource-type "Microsoft.EventGrid/namespaces" --query properties.topicSpacesConfiguration.hostname -o tsv) && \
8
7
TENANT_ID=$(shell az account show --query tenantId --output tsv) && \
9
8
MAESTRO_MI_CLIENT_ID=$(shell az identity show -g "${SVC_RG}" -n maestro-server --query clientId -o tsv) && \
Original file line number Diff line number Diff line change @@ -38,3 +38,5 @@ resourceGroups:
38
38
configRef : serviceKeyVault.name
39
39
- name : MQTT_CLIENT_NAME
40
40
configRef : maestro.serverMqttClientName
41
+ - name : ISTO_TAG
42
+ configRef : svc.istio.tag
You can’t perform that action at this time.
0 commit comments