From bf7feca51897dfa3ea136b5f59485a336265fc58 Mon Sep 17 00:00:00 2001 From: Jon Huhn Date: Tue, 14 May 2024 17:22:52 +0000 Subject: [PATCH] workaround ASO User-Agent not getting set --- config/aso/kustomization.yaml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/config/aso/kustomization.yaml b/config/aso/kustomization.yaml index 3716340936e..3a225ed9577 100644 --- a/config/aso/kustomization.yaml +++ b/config/aso/kustomization.yaml @@ -35,6 +35,26 @@ patches: version: v1 kind: Deployment name: azureserviceoperator-controller-manager + # This implements https://github.com/Azure/azure-service-operator/pull/4011 + # for versions of ASO which don't include that fix. + - patch: |- + apiVersion: apps/v1 + kind: Deployment + metadata: + name: azureserviceoperator-controller-manager + namespace: azureserviceoperator-system + spec: + template: + spec: + containers: + - name: manager + env: + - name: AZURE_USER_AGENT_SUFFIX + valueFrom: + secretKeyRef: + key: AZURE_USER_AGENT_SUFFIX + name: aso-controller-settings + optional: true replacements: - source: