Skip to content

Commit

Permalink
fix: incorrect formatting on empty labels
Browse files Browse the repository at this point in the history
  • Loading branch information
lvlcn-t committed Jan 17, 2024
1 parent 820cd55 commit da317cc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion chart/templates/servicemonitor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ metadata:
name: {{ .Release.Name }}-service-monitor
labels:
app.kubernetes.io/name: {{ include "sparrow.fullname" . }}-service-monitor
{{ .Values.serviceMonitor.labels | toYaml | nindent 4 }}
{{- with .Values.serviceMonitor.labels }}
{{ toYaml . | indent 4 }}
{{- end }}
namespace: {{ .Release.Namespace }}
spec:
selector:
Expand Down

0 comments on commit da317cc

Please sign in to comment.