From b0237b629464f848b150991d11e0ed9c42ec7d1e Mon Sep 17 00:00:00 2001 From: Marc Villacorta Date: Thu, 2 May 2024 23:03:19 +0200 Subject: [PATCH] Fix the template Signed-off-by: Marc Villacorta --- charts/prometheus/templates/deploy.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/charts/prometheus/templates/deploy.yaml b/charts/prometheus/templates/deploy.yaml index 144b4b037d3b..c7cc7af1d66b 100644 --- a/charts/prometheus/templates/deploy.yaml +++ b/charts/prometheus/templates/deploy.yaml @@ -75,7 +75,7 @@ spec: {{- end }} - --reload-url={{ default $default_url .Values.configmapReload.reloadUrl }} {{- range $key, $value := .Values.configmapReload.prometheus.extraArgs }} - {{- if eq ($value | default "") "" }} + {{- if eq (toString $value) "" }} - --{{ $key }} {{- else }} - --{{ $key }}={{ $value }} @@ -148,7 +148,7 @@ spec: - --{{ . }} {{- end }} {{- range $key, $value := .Values.server.extraArgs }} - {{- if eq ($value | default "") "" }} + {{- if eq (toString $value) "" }} - --{{ $key }} {{- else }} - --{{ $key }}={{ $value }}