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" . }}