From 2e1bb7b6221c2f0d2f16b19e3075486435d029a7 Mon Sep 17 00:00:00 2001 From: Chris Werner Rau Date: Thu, 7 Nov 2024 12:33:08 +0100 Subject: [PATCH] fix(base-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 0ddcddc319..2af416342a 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: