{{- if .Values.clusterAgent.createPodDisruptionBudget -}}
apiVersion: policy/v1beta1
kind: PodDisruptionBudget
metadata:
  name: {{ template "datadog.fullname" . }}-cluster-agent
  namespace: {{ .Release.Namespace }}
  labels:
{{ include "datadog.labels" . | indent 4 }}
spec:
  minAvailable: 1
  selector:
    matchLabels:
      app: {{ template "datadog.fullname" . }}-cluster-agent
{{- end -}}
