1 {{- if and .Values.prometheus.enabled .Values.prometheus.podDisruptionBudget.enabled }}
2 apiVersion: policy/v1beta1
3 kind: PodDisruptionBudget
5 name: {{ template "prometheus-operator.fullname" . }}-prometheus
7 app: {{ template "prometheus-operator.name" . }}-prometheus
8 {{ include "prometheus-operator.labels" . | indent 4 }}
10 {{- if .Values.prometheus.podDisruptionBudget.minAvailable }}
11 minAvailable: {{ .Values.prometheus.podDisruptionBudget.minAvailable }}
13 {{- if .Values.prometheus.podDisruptionBudget.maxUnavailable }}
14 maxUnavailable: {{ .Values.prometheus.podDisruptionBudget.maxUnavailable }}
19 prometheus: {{ template "prometheus-operator.fullname" . }}-prometheus