Service Monitor: Improve target labels.

This commit is contained in:
Marco Ebert 2024-10-29 22:20:56 +01:00 committed by k8s-infra-cherrypick-robot
parent 1db669d86a
commit 0b55894dc1

View file

@ -41,10 +41,7 @@ spec:
- {{ include "ingress-nginx.namespace" . }} - {{ include "ingress-nginx.namespace" . }}
{{- end }} {{- end }}
{{- if .Values.controller.metrics.serviceMonitor.targetLabels }} {{- if .Values.controller.metrics.serviceMonitor.targetLabels }}
targetLabels: targetLabels: {{ toYaml .Values.controller.metrics.serviceMonitor.targetLabels | nindent 2 }}
{{- range .Values.controller.metrics.serviceMonitor.targetLabels }}
- {{ . }}
{{- end }}
{{- end }} {{- end }}
selector: selector:
matchLabels: matchLabels: