Skip to content

Commit

Permalink
Revert "only deploy podmonitors when prometheus is enabled"
Browse files Browse the repository at this point in the history
This reverts commit e603c07.
  • Loading branch information
martin committed Jan 21, 2024
1 parent 8e4560a commit fd9be9d
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@
#

# deploy broker PodMonitor only when `$.Values.broker.podMonitor.enabled` is true
# index? see: https://github.com/helm/helm/issues/2192#issuecomment-293739257
{{- if and .Values.autorecovery.podMonitor.enabled (index .Values "kube-prometheus-stack").enabled }}
{{- if $.Values.autorecovery.podMonitor.enabled }}
apiVersion: monitoring.coreos.com/v1
kind: PodMonitor
metadata:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@
#

# deploy bookkeeper PodMonitor only when `$.Values.bookkeeper.podMonitor.enabled` is true
# index? see: https://github.com/helm/helm/issues/2192#issuecomment-293739257
{{- if and .Values.bookkeeper.podMonitor.enabled (index .Values "kube-prometheus-stack").enabled }}
{{- if $.Values.bookkeeper.podMonitor.enabled }}
apiVersion: monitoring.coreos.com/v1
kind: PodMonitor
metadata:
Expand Down
3 changes: 1 addition & 2 deletions charts/pulsar/templates/broker/broker-podmonitor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@
#

# deploy broker PodMonitor only when `$.Values.broker.podMonitor.enabled` is true
# index? see: https://github.com/helm/helm/issues/2192#issuecomment-293739257
{{- if and .Values.broker.podMonitor.enabled (index .Values "kube-prometheus-stack").enabled }}
{{- if $.Values.broker.podMonitor.enabled }}
apiVersion: monitoring.coreos.com/v1
kind: PodMonitor
metadata:
Expand Down
3 changes: 1 addition & 2 deletions charts/pulsar/templates/proxy/proxy-podmonitor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@
#

# deploy proxy PodMonitor only when `$.Values.proxy.podMonitor.enabled` is true
# index? see: https://github.com/helm/helm/issues/2192#issuecomment-293739257
{{- if and .Values.proxy.podMonitor.enabled (index .Values "kube-prometheus-stack").enabled }}
{{- if $.Values.proxy.podMonitor.enabled }}
apiVersion: monitoring.coreos.com/v1
kind: PodMonitor
metadata:
Expand Down
3 changes: 1 addition & 2 deletions charts/pulsar/templates/zookeeper/zookeeper-podmonitor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@
#

# deploy zookeeper PodMonitor only when `$.Values.zookeeper.podMonitor.enabled` is true
# index? see: https://github.com/helm/helm/issues/2192#issuecomment-293739257
{{- if and .Values.zookeeper.podMonitor.enabled (index .Values "kube-prometheus-stack").enabled}}
{{- if $.Values.zookeeper.podMonitor.enabled }}
apiVersion: monitoring.coreos.com/v1
kind: PodMonitor
metadata:
Expand Down

0 comments on commit fd9be9d

Please sign in to comment.