From 5e7c46761edeaa2e9582dc08cb69567ffff29690 Mon Sep 17 00:00:00 2001 From: Chris Werner Rau Date: Thu, 7 Nov 2024 12:33:08 +0100 Subject: [PATCH] fix(t8s-cluster): only `toYaml` if field exists otherwise `{}` will be inserted, breaking everything --- .../t8s-cluster/templates/workload-cluster/_helmRelease.yaml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/charts/t8s-cluster/templates/workload-cluster/_helmRelease.yaml b/charts/t8s-cluster/templates/workload-cluster/_helmRelease.yaml index 0ddcddc31..2af416342 100644 --- a/charts/t8s-cluster/templates/workload-cluster/_helmRelease.yaml +++ b/charts/t8s-cluster/templates/workload-cluster/_helmRelease.yaml @@ -6,9 +6,7 @@ metadata: name: {{ printf "%s-%s" .Release.Name .name }} namespace: {{ .Release.Namespace }} labels: {{- include "common.labels.standard" . | nindent 4 }} - {{- with .additionalLabels }} - {{- toYaml . | nindent 4 }} - {{- end }} + {{- with .additionalLabels }}{{- toYaml . | nindent 4 }}{{- end }} spec: chart: spec: