diff --git a/v2/charts/azure-service-operator/templates/apps_v1_deployment_azureserviceoperator-controller-manager.yaml b/v2/charts/azure-service-operator/templates/apps_v1_deployment_azureserviceoperator-controller-manager.yaml index a0d72eeed37..51740f1c8fb 100644 --- a/v2/charts/azure-service-operator/templates/apps_v1_deployment_azureserviceoperator-controller-manager.yaml +++ b/v2/charts/azure-service-operator/templates/apps_v1_deployment_azureserviceoperator-controller-manager.yaml @@ -199,6 +199,9 @@ spec: valueFrom: fieldRef: fieldPath: metadata.namespace + {{- with .Values.extraEnv }} + {{- toYaml . | nindent 8 }} + {{- end }} image: {{.Values.image.repository}} imagePullPolicy: Always livenessProbe: diff --git a/v2/charts/azure-service-operator/values.yaml b/v2/charts/azure-service-operator/values.yaml index 136cd98539a..989bd0fcf9b 100644 --- a/v2/charts/azure-service-operator/values.yaml +++ b/v2/charts/azure-service-operator/values.yaml @@ -280,3 +280,12 @@ serviceAccount: # If not set and create is true, `azureserviceoperator-default` would be used as a name name: "" annotations: {} + +# List of extra environment variables to inject into the manager container +# Example: +# extraEnv: +# - name: ENV +# value: "prod" +# - name: SERVICE +# value: "azure-service-operator" +extraEnv: []