Merge pull request #6694 from inteon/fix_prometheus
Clearify prometheus options and fix error in Helm chart
This commit is contained in:
commit
8218f4d2ce
@ -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 }}
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user