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: