{{- if .Values.podDisruptionBudget.enabled }}
apiVersion: policy/v1
kind: PodDisruptionBudget
metadata:
  name: {{ include "mongoclaw.fullname" . }}
  labels:
    {{- include "mongoclaw.labels" . | nindent 4 }}
spec:
  minAvailable: {{ .Values.podDisruptionBudget.minAvailable }}
  selector:
    matchLabels:
      {{- include "mongoclaw.selectorLabels" . | nindent 6 }}
{{- end }}
