From 6fd2cf7966af13a88f142f055abfd2b20f1a2426 Mon Sep 17 00:00:00 2001 From: B Marinov Date: Fri, 5 Dec 2025 21:25:02 +0100 Subject: [PATCH] Trim space when common labels is empty --- script/helm/garage/templates/_helpers.tpl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/script/helm/garage/templates/_helpers.tpl b/script/helm/garage/templates/_helpers.tpl index 187e1223..2ffb90c6 100644 --- a/script/helm/garage/templates/_helpers.tpl +++ b/script/helm/garage/templates/_helpers.tpl @@ -47,8 +47,8 @@ helm.sh/chart: {{ include "garage.chart" . }} app.kubernetes.io/version: {{ .Chart.AppVersion | quote }} {{- end }} app.kubernetes.io/managed-by: {{ .Release.Service }} -{{ with .Values.commonLabels }} -{{- toYaml . }} +{{- with .Values.commonLabels }} +{{- toYaml . | nindent 0 }} {{- end }} {{- end }}