From 35406f2f127040921dcf48e8416bb1fc94d3f1c6 Mon Sep 17 00:00:00 2001 From: zhenyus Date: Mon, 17 Mar 2025 22:25:23 +0800 Subject: [PATCH] feat: add version and name labels to authentication service monitor Signed-off-by: zhenyus --- .../authentication/templates/authentication/servicemonitor.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/freeleaps/helm-pkg/authentication/templates/authentication/servicemonitor.yaml b/freeleaps/helm-pkg/authentication/templates/authentication/servicemonitor.yaml index 607b0a19..ab57c1ea 100644 --- a/freeleaps/helm-pkg/authentication/templates/authentication/servicemonitor.yaml +++ b/freeleaps/helm-pkg/authentication/templates/authentication/servicemonitor.yaml @@ -29,4 +29,6 @@ spec: matchLabels: app.kubernetes.io/managed-by: {{ .Release.Service }} app.kubernetes.io/instance: {{ .Release.Name }} + app.kubernetes.io/version: {{ .Chart.AppVersion | quote }} + app.kubernetes.io/name: {{ .Release.Name }} {{- end }} \ No newline at end of file