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 }}