clearify prometheus options and fix error in Helm chart

Signed-off-by: Tim Ramlot <42113979+inteon@users.noreply.github.com>
This commit is contained in:
Tim Ramlot 2024-02-01 10:16:53 +01:00
parent ce3d0570f7
commit cdba8a7025
No known key found for this signature in database
GPG Key ID: 47428728E0C2878D
2 changed files with 5 additions and 4 deletions

View File

@ -42,7 +42,7 @@ spec:
annotations:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- if and .Values.prometheus.enabled (not .Values.prometheus.servicemonitor.enabled) }}
{{- if and .Values.prometheus.enabled (not (or .Values.prometheus.servicemonitor.enabled .Values.prometheus.podmonitor.enabled)) }}
{{- if not .Values.podAnnotations }}
annotations:
{{- end }}

View File

@ -420,10 +420,11 @@ enableServiceLinks: false
prometheus:
# Enable Prometheus monitoring for the cert-manager controller to use with the
# Prometheus Operator. Either `prometheus.servicemonitor.enabled` or
# `prometheus.podmonitor.enabled` can be used to create a ServiceMonitor/PodMonitor
# resource.
# Prometheus Operator. If this option is enabled without enabling `prometheus.servicemonitor.enabled` or
# `prometheus.podmonitor.enabled`, 'prometheus.io' annotations are added to the cert-manager Deployment resources.
# Otherwise, a ServiceMonitor/ PodMonitor is created.
enabled: true
servicemonitor:
# Create a ServiceMonitor to add cert-manager to Prometheus.
enabled: false