github.com/microsoft/fabrikate@v1.0.0-alpha.1.0.20210115014322-dc09194d0885/testdata/local-charts/prometheus/templates/pushgateway/pdb.yaml (about) 1 {{- if .Values.pushgateway.podDisruptionBudget.enabled }} 2 apiVersion: policy/v1beta1 3 kind: PodDisruptionBudget 4 metadata: 5 name: {{ template "prometheus.pushgateway.fullname" . }} 6 {{ include "prometheus.namespace" . | indent 2 }} 7 labels: 8 {{- include "prometheus.pushgateway.labels" . | nindent 4 }} 9 spec: 10 maxUnavailable: {{ .Values.pushgateway.podDisruptionBudget.maxUnavailable }} 11 selector: 12 matchLabels: 13 {{- include "prometheus.pushgateway.labels" . | nindent 6 }} 14 {{- end }}