From be9aa8bf68e20e2f7ff1a6c3c2465f87b3aa581c Mon Sep 17 00:00:00 2001 From: genofire Date: Tue, 21 Nov 2023 11:02:37 +0100 Subject: [PATCH] chore: lint jvb/metrics-prometheus.yaml --- templates/jvb/metrics-prometheus.yaml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/templates/jvb/metrics-prometheus.yaml b/templates/jvb/metrics-prometheus.yaml index 5c36c2a..1618c41 100644 --- a/templates/jvb/metrics-prometheus.yaml +++ b/templates/jvb/metrics-prometheus.yaml @@ -5,22 +5,22 @@ metadata: name: {{ template "jitsi-meet.jvb.fullname" . }} labels: {{- include "jitsi-meet.jvb.labels" . | nindent 4 }} - {{- range $key, $value := .Values.jvb.metrics.serviceMonitor.selector }} - {{ $key }}: {{ $value | quote }} + {{- with .Values.jvb.metrics.serviceMonitor.selector }} + {{- toYaml . | nindent 4 }} {{- end }} spec: endpoints: - port: tcp-metrics path: /metrics - {{- if .Values.jvb.metrics.serviceMonitor.honorLabels }} - honorLabels: {{ .Values.jvb.metrics.serviceMonitor.honorLabels }} + {{- with .Values.jvb.metrics.serviceMonitor.honorLabels }} + honorLabels: {{ . }} {{- end }} - {{- if .Values.jvb.metrics.serviceMonitor.interval }} - interval: {{ .Values.jvb.metrics.serviceMonitor.interval }} + {{- with .Values.jvb.metrics.serviceMonitor.interval }} + interval: {{ . }} {{- end }} selector: matchLabels: - {{- include "jitsi-meet.jvb.labels" . | nindent 6 }} + {{- include "jitsi-meet.jvb.labels" . | nindent 6 }} namespaceSelector: matchNames: - {{ .Release.Namespace }}