From 8c5f131cfca4bde8498ca73e1559053ba6c7099e Mon Sep 17 00:00:00 2001 From: Andy Suderman Date: Mon, 19 Jun 2023 13:39:14 -0600 Subject: [PATCH] Fix #1127 - remove capabilities check for prometheus Signed-off-by: Andy Suderman --- templates/metrics/metrics-svcmon.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/metrics/metrics-svcmon.yaml b/templates/metrics/metrics-svcmon.yaml index ad8522974..1122ef01e 100644 --- a/templates/metrics/metrics-svcmon.yaml +++ b/templates/metrics/metrics-svcmon.yaml @@ -1,4 +1,4 @@ -{{- if and ( .Capabilities.APIVersions.Has "monitoring.coreos.com/v1" ) .Values.metrics.enabled .Values.metrics.serviceMonitor.enabled }} +{{- if and .Values.metrics.enabled .Values.metrics.serviceMonitor.enabled }} apiVersion: monitoring.coreos.com/v1 kind: ServiceMonitor metadata: