From 716b8d510bfd6d594c3714f6bdea3927622bc9f3 Mon Sep 17 00:00:00 2001 From: Marc Villacorta Date: Thu, 2 May 2024 22:03:52 +0200 Subject: [PATCH] Another extraArgs --- charts/prometheus/templates/deploy.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/charts/prometheus/templates/deploy.yaml b/charts/prometheus/templates/deploy.yaml index 82389d610319..c018549b6b06 100644 --- a/charts/prometheus/templates/deploy.yaml +++ b/charts/prometheus/templates/deploy.yaml @@ -148,7 +148,11 @@ spec: - --{{ . }} {{- end }} {{- range $key, $value := .Values.server.extraArgs }} + {{- if ne $value "" }} - --{{ $key }}={{ $value }} + {{- else }} + - --{{ $key }} + {{- end }} {{- end }} {{- if .Values.server.prefixURL }} - --web.route-prefix={{ .Values.server.prefixURL }}