Add ServiceMonitor Prometheus selector label (#116)
All checks were successful
continuous-integration/drone/push Build is passing

Reviewed-on: gitea/helm-chart#116 Reviewed-by: luhahn <luhahn@noreply.gitea.io> Reviewed-by: lafriks <lafriks@noreply.gitea.io> Co-authored-by: Starefossen <starefossen@noreply.gitea.io> Co-committed-by: Starefossen <starefossen@noreply.gitea.io>
This commit was merged in pull request #116.
This commit is contained in:
Starefossen
2021-03-01 20:18:09 +08:00
committed by lafriks
parent 33903d8f6c
commit 7ed82c7a63

View File

@@ -5,6 +5,9 @@ metadata:
name: {{ include "gitea.fullname" . }}
labels:
{{- include "gitea.labels" . | nindent 4 }}
{{- if .Values.metrics.serviceMonitor.prometheusSelector }}
prometheus: {{ .Values.metrics.serviceMonitor.prometheusSelector }}
{{- end }}
spec:
selector:
matchLabels: