Skip to content

Commit

Permalink
maestro fixes
Browse files Browse the repository at this point in the history
Signed-off-by: Gerd Oberlechner <goberlec@redhat.com>
  • Loading branch information
geoberle committed Feb 18, 2025
1 parent 2fd9bb8 commit f773cbe
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions maestro/agent/pipeline.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ resourceGroups:
configRef: maestro.agentSideCar.imageBase
- name: SIDECAR_IMAGE_TAG
configRef: maestro.agentSideCar.imageTag
- name: ACR_NAME
configRef: svcAcrName
- name: {{ .svc.rg }}
subscription: {{ .svc.subscription }}
aksCluster: {{ .svc.aks.name }}
Expand Down
5 changes: 2 additions & 3 deletions maestro/server/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@ deploy:
MAESTRO_MI_CLIENT_ID=$(shell az identity show -g "${SVC_RG}" -n ${MANAGED_IDENTITY_NAME} --query clientId -o tsv) && \
DATABASE_HOST=$$(if [ "${USE_AZURE_DB}" = "true" ]; then az postgres flexible-server show -g ${SVC_RG} -n ${DATABASE_SERVER_NAME} --query fullyQualifiedDomainName -o tsv; else echo "maestro-db"; fi) && \
OVERRIDES=$$(if [ "${USE_AZURE_DB}" = "true" ]; then echo "azuredb.values.yaml"; else echo "containerdb.values.yaml"; fi) && \
IMAGE_PULLER_MI_CLIENT_ID=$(shell az identity show -g ${RESOURCEGROUP} -n image-puller --query clientId -o tsv) && \
IMAGE_PULLER_MI_TENANT_ID=$(shell az identity show -g ${RESOURCEGROUP} -n image-puller --query tenantId -o tsv) && \
IMAGE_PULLER_MI_CLIENT_ID=$(shell az identity show -g ${SVC_RG} -n image-puller --query clientId -o tsv) && \
${HELM_CMD} maestro-server ./helm \
--namespace ${NAMESPACE} \
-f helm/$${OVERRIDES} \
Expand All @@ -31,7 +30,7 @@ deploy:
--set clusterService.namespace=${CS_NAMESPACE} \
--set clusterService.serviceAccount=${CS_SERVICE_ACCOUNT_NAME} \
--set pullBinding.workloadIdentityClientId="$${IMAGE_PULLER_MI_CLIENT_ID}" \
--set pullBinding.workloadIdentityTenantId="$${IMAGE_PULLER_MI_TENANT_ID}" \
--set pullBinding.workloadIdentityTenantId="$${TENANT_ID}" \
--set pullBinding.registry=${ACR_NAME}.azurecr.io \
--set pullBinding.scope=repository:${IMAGE_BASE}:pull
.PHONY: deploy
1 change: 1 addition & 0 deletions maestro/server/helm/templates/maestro.serviceaccount.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ metadata:
namespace: {{ .Release.Namespace }}
annotations:
azure.workload.identity/client-id: {{ .Values.azure.clientId }}
azure.workload.identity/tenant-id: {{ .Values.azure.tenantId }}

0 comments on commit f773cbe

Please sign in to comment.