Service Monitor: Indent endpoints.

This commit is contained in:
Marco Ebert 2024-10-29 22:19:15 +01:00 committed by k8s-infra-cherrypick-robot
parent f8258eec3e
commit 87efc061e1

View file

@ -19,16 +19,16 @@ metadata:
{{- end }} {{- end }}
spec: spec:
endpoints: endpoints:
- port: {{ .Values.controller.metrics.portName }} - port: {{ .Values.controller.metrics.portName }}
interval: {{ .Values.controller.metrics.serviceMonitor.scrapeInterval }} interval: {{ .Values.controller.metrics.serviceMonitor.scrapeInterval }}
{{- if .Values.controller.metrics.serviceMonitor.honorLabels }} {{- if .Values.controller.metrics.serviceMonitor.honorLabels }}
honorLabels: true honorLabels: true
{{- end }} {{- end }}
{{- if .Values.controller.metrics.serviceMonitor.relabelings }} {{- if .Values.controller.metrics.serviceMonitor.relabelings }}
relabelings: {{ toYaml .Values.controller.metrics.serviceMonitor.relabelings | nindent 8 }} relabelings: {{ toYaml .Values.controller.metrics.serviceMonitor.relabelings | nindent 4 }}
{{- end }} {{- end }}
{{- if .Values.controller.metrics.serviceMonitor.metricRelabelings }} {{- if .Values.controller.metrics.serviceMonitor.metricRelabelings }}
metricRelabelings: {{ toYaml .Values.controller.metrics.serviceMonitor.metricRelabelings | nindent 8 }} metricRelabelings: {{ toYaml .Values.controller.metrics.serviceMonitor.metricRelabelings | nindent 4 }}
{{- end }} {{- end }}
{{- if .Values.controller.metrics.serviceMonitor.jobLabel }} {{- if .Values.controller.metrics.serviceMonitor.jobLabel }}
jobLabel: {{ .Values.controller.metrics.serviceMonitor.jobLabel | quote }} jobLabel: {{ .Values.controller.metrics.serviceMonitor.jobLabel | quote }}