From c50b12e526e5fd2769b52cc6d7438163e8d5da10 Mon Sep 17 00:00:00 2001 From: Christoph Hoth Date: Sun, 2 Feb 2025 08:29:11 +0100 Subject: [PATCH] Fix scrapeTimeout validation (#4916) On-behalf-of: @ZEISS Signed-off-by: Christoph Hoth Signed-off-by: MH Co-authored-by: MH --- charts/prometheus-json-exporter/Chart.yaml | 6 +++++- .../prometheus-json-exporter/templates/servicemonitor.yaml | 2 -- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/charts/prometheus-json-exporter/Chart.yaml b/charts/prometheus-json-exporter/Chart.yaml index ac506599cb3e..d3efc7fd1955 100644 --- a/charts/prometheus-json-exporter/Chart.yaml +++ b/charts/prometheus-json-exporter/Chart.yaml @@ -6,7 +6,11 @@ keywords: - monitoring - prometheus type: application -version: 0.14.1 +# This is the version number of the application being deployed. This version number should be +# incremented each time you make changes to the application. Versions are not expected to +# follow Semantic Versioning. They should reflect the version the application is using. +# It is recommended to use it with quotes. +version: 0.14.2 appVersion: "v0.6.0" home: https://github.com/prometheus-community/json_exporter maintainers: diff --git a/charts/prometheus-json-exporter/templates/servicemonitor.yaml b/charts/prometheus-json-exporter/templates/servicemonitor.yaml index c2ba166a6b03..787738ce795f 100644 --- a/charts/prometheus-json-exporter/templates/servicemonitor.yaml +++ b/charts/prometheus-json-exporter/templates/servicemonitor.yaml @@ -17,9 +17,7 @@ spec: scheme: {{ $.Values.serviceMonitor.scheme }} path: "/probe" interval: {{ .interval | default $.Values.serviceMonitor.defaults.interval }} - {{- if $.Values.serviceMonitor.scrapeTimeout }} scrapeTimeout: {{ .scrapeTimeout | default $.Values.serviceMonitor.defaults.scrapeTimeout }} - {{- end }} params: target: - {{ .url }}