From fb40dc1159c7174a1c4268ecdbdbe1fc7e7ccf83 Mon Sep 17 00:00:00 2001 From: Psycho Mantys Date: Thu, 30 May 2024 20:22:05 -0300 Subject: [PATCH] Update servicemonitor.yaml Signed-off-by: Psycho Mantys --- .../argo-cd/templates/argocd-notifications/servicemonitor.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/charts/argo-cd/templates/argocd-notifications/servicemonitor.yaml b/charts/argo-cd/templates/argocd-notifications/servicemonitor.yaml index 03599a6d..04cd664a 100644 --- a/charts/argo-cd/templates/argocd-notifications/servicemonitor.yaml +++ b/charts/argo-cd/templates/argocd-notifications/servicemonitor.yaml @@ -1,4 +1,4 @@ -{{- if and (.Capabilities.APIVersions.Has "monitoring.coreos.com/v1") .Values.notifications.enabled .Values.notifications.metrics.enabled .Values.notifications.metrics.serviceMonitor.enabled }} +{{- if and (or .Values.notifications.metrics.serviceMonitor.disableAPICheck (.Capabilities.APIVersions.Has "monitoring.coreos.com/v1")) .Values.notifications.enabled .Values.notifications.metrics.enabled .Values.notifications.metrics.serviceMonitor.enabled }} apiVersion: monitoring.coreos.com/v1 kind: ServiceMonitor metadata: