Skip to content

Commit

Permalink
[jiralert] Enable usage of serviceMonitor.additionalLabels (#5036)
Browse files Browse the repository at this point in the history
* 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 <[email protected]>

* Update charts/jiralert/templates/servicemonitor.yaml

Signed-off-by: Jan-Otto Kröpke <[email protected]>

---------

Signed-off-by: Anselm Eberhardt <[email protected]>
Signed-off-by: Jan-Otto Kröpke <[email protected]>
Co-authored-by: Jan-Otto Kröpke <[email protected]>
  • Loading branch information
aeber and jkroepke authored Dec 9, 2024
1 parent de8665b commit d53ec4d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/jiralert/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
3 changes: 3 additions & 0 deletions charts/jiralert/templates/servicemonitor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ metadata:
{{- end }}
labels:
{{- include "jiralert.labels" . | nindent 4 }}
{{- with .Values.serviceMonitor.additionalLabels }}
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
endpoints:
- port: http
Expand Down

0 comments on commit d53ec4d

Please sign in to comment.