From d53ec4dfafdb0bd77317b2c6223613ea88d4c13c Mon Sep 17 00:00:00 2001 From: aeber Date: Mon, 9 Dec 2024 03:13:44 +0100 Subject: [PATCH] [jiralert] Enable usage of serviceMonitor.additionalLabels (#5036) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Enable usage of serviceMonitor.additionalLabels Up to now the field was present in the values.yaml but did not get used in the servicemonitor template. Signed-off-by: Anselm Eberhardt * Update charts/jiralert/templates/servicemonitor.yaml Signed-off-by: Jan-Otto Kröpke --------- Signed-off-by: Anselm Eberhardt Signed-off-by: Jan-Otto Kröpke Co-authored-by: Jan-Otto Kröpke --- charts/jiralert/Chart.yaml | 2 +- charts/jiralert/templates/servicemonitor.yaml | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/charts/jiralert/Chart.yaml b/charts/jiralert/Chart.yaml index 2900efa5bb6c..5228065cef45 100755 --- a/charts/jiralert/Chart.yaml +++ b/charts/jiralert/Chart.yaml @@ -2,7 +2,7 @@ apiVersion: v2 name: jiralert description: A Helm chart for Kubernetes to install jiralert type: application -version: 1.7.1 +version: 1.7.2 appVersion: "v1.3.0" home: "https://github.com/prometheus-community/jiralert" keywords: diff --git a/charts/jiralert/templates/servicemonitor.yaml b/charts/jiralert/templates/servicemonitor.yaml index 65d9fa9c4486..392063d98dbb 100644 --- a/charts/jiralert/templates/servicemonitor.yaml +++ b/charts/jiralert/templates/servicemonitor.yaml @@ -8,6 +8,9 @@ metadata: {{- end }} labels: {{- include "jiralert.labels" . | nindent 4 }} + {{- with .Values.serviceMonitor.additionalLabels }} + {{- toYaml . | nindent 4 }} + {{- end }} spec: endpoints: - port: http