From 61207924fb3716d506bc7f8bb275b88d83a8a0c2 Mon Sep 17 00:00:00 2001 From: Igor Rodionov Date: Tue, 4 Apr 2017 16:21:15 +0600 Subject: [PATCH] Added prometheus default selectors for rules and service Monitors --- incubator/prometheus/templates/prometheus.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/incubator/prometheus/templates/prometheus.yaml b/incubator/prometheus/templates/prometheus.yaml index 9e54a6ec..7cd11c27 100644 --- a/incubator/prometheus/templates/prometheus.yaml +++ b/incubator/prometheus/templates/prometheus.yaml @@ -34,7 +34,7 @@ spec: serviceMonitorSelector: matchLabels: {{ toYaml .Values.serviceMonitorsSelector | indent 6 }} -{{- else if .Values.serviceMonitors }} +{{- else }} serviceMonitorSelector: matchLabels: app: {{ template "name" . }} @@ -44,7 +44,7 @@ spec: ruleSelector: matchLabels: {{ toYaml .Values.rulesSelector | indent 6 }} -{{- else if .Values.rules.value }} +{{- else }} ruleSelector: matchLabels: app: {{ template "name" . }}