From 9106d68cdc14824ddaa8a29956583a1f1d7211df Mon Sep 17 00:00:00 2001 From: luhahn Date: Tue, 2 Mar 2021 17:10:38 +0800 Subject: [PATCH] Fix ServiceMonitor selector labels (#125) Reviewed-on: https://gitea.com/gitea/helm-chart/pulls/125 Reviewed-by: Andrew Thornton Reviewed-by: lafriks Co-authored-by: luhahn Co-committed-by: luhahn --- templates/gitea/servicemonitor.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/gitea/servicemonitor.yaml b/templates/gitea/servicemonitor.yaml index 1b50943..8f22ea5 100644 --- a/templates/gitea/servicemonitor.yaml +++ b/templates/gitea/servicemonitor.yaml @@ -5,8 +5,8 @@ metadata: name: {{ include "gitea.fullname" . }} labels: {{- include "gitea.labels" . | nindent 4 }} - {{- if .Values.metrics.serviceMonitor.prometheusSelector }} - prometheus: {{ .Values.metrics.serviceMonitor.prometheusSelector }} + {{- if .Values.gitea.metrics.serviceMonitor.prometheusSelector }} + prometheus: {{ .Values.gitea.metrics.serviceMonitor.prometheusSelector }} {{- end }} spec: selector: