From 84a3b04994176da59f4018e0a4ae199a0b04b979 Mon Sep 17 00:00:00 2001 From: Levi van Noort <73097785+levivannoort@users.noreply.github.com> Date: Wed, 27 Nov 2024 14:36:17 +0100 Subject: [PATCH] fix(localstack): align template extraLabels with extraAnnotations --- charts/localstack/templates/_helpers.tpl | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/charts/localstack/templates/_helpers.tpl b/charts/localstack/templates/_helpers.tpl index 2d3cc66..a515e95 100644 --- a/charts/localstack/templates/_helpers.tpl +++ b/charts/localstack/templates/_helpers.tpl @@ -40,8 +40,10 @@ helm.sh/chart: {{ include "localstack.chart" . }} app.kubernetes.io/version: {{ .Chart.AppVersion | quote }} {{- end }} app.kubernetes.io/managed-by: {{ .Release.Service }} -{{- if .Values.extraLabels }} -{{ toYaml .Values.extraLabels }} +{{- with .Values.extraLabels }} +{{- range $label, $value := index . }} +{{ $label }}: {{ tpl $value $ | quote }} +{{- end }} {{- end }} {{- end }}