From 8b03153b547397b216ffb89ca70a3e1cd4d30cef Mon Sep 17 00:00:00 2001 From: alex-souslik-hs Date: Sat, 18 Nov 2023 17:40:12 +0200 Subject: [PATCH] change if to with Signed-off-by: alex-souslik-hs --- charts/prometheus-rabbitmq-exporter/templates/service.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/charts/prometheus-rabbitmq-exporter/templates/service.yaml b/charts/prometheus-rabbitmq-exporter/templates/service.yaml index 7721c8a73c4b..394c9cbdfee4 100644 --- a/charts/prometheus-rabbitmq-exporter/templates/service.yaml +++ b/charts/prometheus-rabbitmq-exporter/templates/service.yaml @@ -7,8 +7,8 @@ metadata: chart: {{ template "prometheus-rabbitmq-exporter.chart" . }} release: {{ .Release.Name }} heritage: {{ .Release.Service }} - {{- if .Values.service.labels }} - {{ toYaml .Values.service.labels | indent 4 }} + {{- with .Values.service.labels }} + {{ toYaml . | indent 4 }} {{- end }} spec: type: {{ .Values.service.type }}