helm: add annotations for ServiceMonitor (#15020)

This commit is contained in:
Mathieu Parent
2022-07-16 10:04:27 +02:00
committed by GitHub
parent e94eb9af10
commit 2bc7ca2d34
2 changed files with 13 additions and 8 deletions

View File

@@ -16,6 +16,10 @@ metadata:
{{- if .Values.metrics.serviceMonitor.additionalLabels }}
{{ toYaml .Values.metrics.serviceMonitor.additionalLabels | indent 4 }}
{{- end }}
{{- if .Values.metrics.serviceMonitor.annotations }}
annotations:
{{ toYaml .Values.metrics.serviceMonitor.annotations | trimSuffix "\n" | indent 4 }}
{{- end }}
spec:
endpoints:
{{- if .Values.tls.enabled }}