From 9c0cb84a67b39743d8e02dfc78ffc6a54dcf2024 Mon Sep 17 00:00:00 2001 From: Julien Francoz Date: Tue, 10 Dec 2024 16:05:32 +0100 Subject: [PATCH] [prometheus-postgresql-exporter] fix template fix bad rendering when serviceMonitor.enabled=true without serviceMonitor.multipleTarget.enabled Signed-off-by: Julien Francoz --- charts/prometheus-postgres-exporter/Chart.yaml | 2 +- .../prometheus-postgres-exporter/templates/servicemonitor.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/charts/prometheus-postgres-exporter/Chart.yaml b/charts/prometheus-postgres-exporter/Chart.yaml index df1c78378907..cd9fb8292052 100644 --- a/charts/prometheus-postgres-exporter/Chart.yaml +++ b/charts/prometheus-postgres-exporter/Chart.yaml @@ -2,7 +2,7 @@ apiVersion: v2 appVersion: "v0.16.0" description: A Helm chart for prometheus postgres-exporter name: prometheus-postgres-exporter -version: 6.7.0 +version: 6.7.1 home: https://github.com/prometheus-community/postgres_exporter sources: - https://github.com/prometheus-community/postgres_exporter diff --git a/charts/prometheus-postgres-exporter/templates/servicemonitor.yaml b/charts/prometheus-postgres-exporter/templates/servicemonitor.yaml index e8a51d9e586b..9dccf089324f 100644 --- a/charts/prometheus-postgres-exporter/templates/servicemonitor.yaml +++ b/charts/prometheus-postgres-exporter/templates/servicemonitor.yaml @@ -57,7 +57,7 @@ spec: {{- end }} {{- end }} {{- end }} -{{- if not .Values.serviceMonitor.multipleTarget.enabled -}} +{{- if not .Values.serviceMonitor.multipleTarget.enabled }} endpoints: - port: {{ .Values.service.name }} {{- if .Values.serviceMonitor.interval }}