{{- if .Values.pdb.enabled -}}
---
apiVersion: policy/v1
kind: PodDisruptionBudget
metadata:
  name: {{ include "hydra-maester.fullname" . }}
spec:
  selector:
    matchLabels:
      control-plane: controller-manager
      app.kubernetes.io/name: {{ include "hydra-maester.fullname" . }}
      app.kubernetes.io/instance: {{ .Release.Name }}
  {{ toYaml .Values.pdb.spec }}
{{- end -}}