Mohammed Naser | 9ad0d46 | 2023-01-15 20:36:37 -0500 | [diff] [blame] | 1 | {{- if .Values.podDisruptionBudget -}} |
2 | apiVersion: policy/v1beta1 | ||||
3 | kind: PodDisruptionBudget | ||||
4 | metadata: | ||||
5 | name: {{ template "prometheus-pushgateway.fullname" . }} | ||||
6 | labels: | ||||
7 | {{ template "prometheus-pushgateway.defaultLabels" merge (dict "extraLabels" .Values.podLabels) . }} | ||||
8 | spec: | ||||
9 | selector: | ||||
10 | matchLabels: | ||||
11 | app: {{ template "prometheus-pushgateway.name" . }} | ||||
12 | {{ toYaml .Values.podDisruptionBudget | indent 2 }} | ||||
13 | {{- end -}} |