Skip to content

Commit 675b8ad

Browse files
Fix YAML parsing following podLabels change (#231)
1 parent 2d27081 commit 675b8ad

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

helm/sloop/templates/statefulset.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@ spec:
1818
labels:
1919
app.kubernetes.io/name: {{ .Values.name }}
2020
app.kubernetes.io/instance: "{{ .Release.Name }}"
21-
{{ toYaml .Values.podLabels | indent 8 }}
21+
{{- with .Values.podLabels -}}
22+
{{ toYaml . | nindent 8 }}
23+
{{- end }}
2224
annotations:
2325
{{ toYaml .Values.podAnnotations | indent 8 }}
2426
spec:

0 commit comments

Comments
 (0)