apiVersion: {{ $.Capabilities.APIVersions.Has "policy/v1/PodDisruptionBudget" | ternary "policy/v1" "policy/v1beta1" }}
kind: PodDisruptionBudget
metadata:
  name: {{ include "with-api-version.fullname" . }}
  labels:
    {{- include "with-api-version.labels" . | nindent 4 }}
spec:
  selector:
    matchLabels:
      {{- include "with-api-version.selectorLabels" . | nindent 6 }}
  maxUnavailable: 0
