# helm_charts_podisruptionbudget.yaml
{{- if .Values.podDisruptionBudget }}
apiVersion: policy/v1beta1
kind: PodDisruptionBudget
metadata:
  name: {{ include "kafka.fullname" . }}
  labels:
  {{- include "kafka.broker.labels" . | nindent 4 }}
spec:
  selector:
    matchLabels:
    {{- include "kafka.broker.matchLabels" . | nindent 6 }}
{{ toYaml .Values.podDisruptionBudget | indent 2 }}

{{- end }}