a51cda5d2ecff7ed390528820c99b05d497c917a
[demo.git] / vnfs / DAaaS / operator / charts / prometheus-operator / templates / prometheus / podDisruptionBudget.yaml
1 {{- if and .Values.prometheus.enabled .Values.prometheus.podDisruptionBudget.enabled }}
2 apiVersion: policy/v1beta1
3 kind: PodDisruptionBudget
4 metadata:
5   name: {{ template "prometheus-operator.fullname" . }}-prometheus
6   labels:
7     app: {{ template "prometheus-operator.name" . }}-prometheus
8 {{ include "prometheus-operator.labels" . | indent 4 }}
9 spec:
10   {{- if .Values.prometheus.podDisruptionBudget.minAvailable }}
11   minAvailable: {{ .Values.prometheus.podDisruptionBudget.minAvailable }}
12   {{- end  }}
13   {{- if .Values.prometheus.podDisruptionBudget.maxUnavailable }}
14   maxUnavailable: {{ .Values.prometheus.podDisruptionBudget.maxUnavailable }}
15   {{- end  }}
16   selector:
17     matchLabels:
18       app: prometheus
19       prometheus: {{ template "prometheus-operator.fullname" . }}-prometheus
20 {{- end }}