From 63c0d0afe5901bc6ceef08a6872a5cee5fda39de Mon Sep 17 00:00:00 2001 From: 181192 Date: Mon, 1 Feb 2021 18:47:54 +0100 Subject: [PATCH] Fix servicemonitor matchLabels for service Signed-off-by: 181192 --- charts/podinfo/templates/servicemonitor.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/charts/podinfo/templates/servicemonitor.yaml b/charts/podinfo/templates/servicemonitor.yaml index ae5135533..e356479e6 100644 --- a/charts/podinfo/templates/servicemonitor.yaml +++ b/charts/podinfo/templates/servicemonitor.yaml @@ -12,5 +12,5 @@ spec: interval: {{ .Values.serviceMonitor.interval }} selector: matchLabels: - app: {{ template "podinfo.fullname" . }} + {{- include "podinfo.selectorLabels" . | nindent 6 }} {{- end }}