From 675b8add2608e58b85f0910433c2cffa041733c2 Mon Sep 17 00:00:00 2001 From: Lukas Stockner Date: Fri, 26 Aug 2022 00:46:27 +0200 Subject: [PATCH] Fix YAML parsing following podLabels change (#231) --- helm/sloop/templates/statefulset.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/helm/sloop/templates/statefulset.yaml b/helm/sloop/templates/statefulset.yaml index 70259f8e..b84aaa56 100644 --- a/helm/sloop/templates/statefulset.yaml +++ b/helm/sloop/templates/statefulset.yaml @@ -18,7 +18,9 @@ spec: labels: app.kubernetes.io/name: {{ .Values.name }} app.kubernetes.io/instance: "{{ .Release.Name }}" -{{ toYaml .Values.podLabels | indent 8 }} + {{- with .Values.podLabels -}} + {{ toYaml . | nindent 8 }} + {{- end }} annotations: {{ toYaml .Values.podAnnotations | indent 8 }} spec: