[POLICY] Disable prometheus monitoring by default
ServiceMonitor resource not part of native Kubernetes,
it is a custom resource defined via Prometheus operator.
Prometheus operator deployment is a pre-requisite
to enable creating a ServiceMonitor objects.
Issue-ID: POLICY-4096
Signed-off-by: Rashmi Pujar <rashmi.pujar1@bell.ca>
Change-Id: Ia672d5d5982e61c00f8effccad0929240f54efb2
diff --git a/kubernetes/policy/components/policy-distribution/templates/serviceMonitor.yaml b/kubernetes/policy/components/policy-distribution/templates/serviceMonitor.yaml
index dbf6a7c..8284c73 100644
--- a/kubernetes/policy/components/policy-distribution/templates/serviceMonitor.yaml
+++ b/kubernetes/policy/components/policy-distribution/templates/serviceMonitor.yaml
@@ -18,6 +18,6 @@
# ============LICENSE_END=========================================================
*/}}
-{{- if .Values.prometheus.enabled }}
+{{- if .Values.global.prometheusEnabled }}
{{ include "common.serviceMonitor" . }}
-{{- end }}
\ No newline at end of file
+{{- end }}