From 7691c9bbc69ef4d075182f205f92e3964c25d818 Mon Sep 17 00:00:00 2001 From: Erwan Miran Date: Wed, 19 Feb 2025 16:22:51 +0100 Subject: [PATCH] [azure-metrics-exporter] Support extraVolumes and extraVolumeMounts --- charts/azure-metrics-exporter/Chart.yaml | 2 +- .../azure-metrics-exporter/templates/deployment.yaml | 7 +++++++ charts/azure-metrics-exporter/values.yaml | 12 ++++++++++++ 3 files changed, 20 insertions(+), 1 deletion(-) diff --git a/charts/azure-metrics-exporter/Chart.yaml b/charts/azure-metrics-exporter/Chart.yaml index 61fae4c..5cbb2ae 100644 --- a/charts/azure-metrics-exporter/Chart.yaml +++ b/charts/azure-metrics-exporter/Chart.yaml @@ -3,7 +3,7 @@ name: azure-metrics-exporter type: application description: A Helm chart for azure-metrics-exporter home: https://github.com/webdevops/azure-metrics-exporter -version: 1.2.10 +version: 1.3.0 # renovate: image=webdevops/azure-metrics-exporter appVersion: 24.9.1 keywords: diff --git a/charts/azure-metrics-exporter/templates/deployment.yaml b/charts/azure-metrics-exporter/templates/deployment.yaml index 3cec0b3..8f812e4 100644 --- a/charts/azure-metrics-exporter/templates/deployment.yaml +++ b/charts/azure-metrics-exporter/templates/deployment.yaml @@ -69,6 +69,10 @@ spec: - containerPort: 8080 name: http-metrics protocol: TCP + {{- with .Values.extraVolumeMounts }} + volumeMounts: + {{- toYaml . | nindent 12 }} + {{- end }} {{- with .Values.resources }} resources: {{ toYaml . | nindent 12 }} @@ -94,4 +98,7 @@ spec: {{- end }} {{- if .Values.imagePullSecrets }} imagePullSecrets: {{ toYaml .Values.imagePullSecrets | nindent 8 }} +{{- with .Values.extraVolumes }} + volumes: + {{- toYaml . | nindent 8 }} {{- end }} diff --git a/charts/azure-metrics-exporter/values.yaml b/charts/azure-metrics-exporter/values.yaml index 2ed7344..a97e5ed 100644 --- a/charts/azure-metrics-exporter/values.yaml +++ b/charts/azure-metrics-exporter/values.yaml @@ -32,6 +32,18 @@ secretsEnableTemplateFunctions: false secrets: {} # secretName: secretValue +extraVolumes: [] + # - name: azure-identity-token + # projected: + # sources: + # - serviceAccountToken: + # audience: api://AzureADTokenExchange + # expirationSeconds: 3600 + # path: federated-token +extraVolumeMounts: [] + # - mountPath: /var/run/secrets/azure/tokens + # name: azure-identity-token + # readOnly: true resources: limits: