{{- if .Values.podDisruptionBudget -}} | |
apiVersion: policy/v1beta1 | |
kind: PodDisruptionBudget | |
metadata: | |
name: {{ template "prometheus-pushgateway.fullname" . }} | |
labels: | |
{{ template "prometheus-pushgateway.defaultLabels" merge (dict "extraLabels" .Values.podLabels) . }} | |
spec: | |
selector: | |
matchLabels: | |
app: {{ template "prometheus-pushgateway.name" . }} | |
{{ toYaml .Values.podDisruptionBudget | indent 2 }} | |
{{- end -}} |