helm detect PDB api version
---
{{- if .Values.podDisruptionBudget.enabled }}
+{{- if .Capabilities.APIVersions.Has "policy/v1" }}
apiVersion: policy/v1
+{{- else }}
+apiVersion: policy/v1beta1
+{{- end }}
kind: PodDisruptionBudget
metadata:
name: {{ template "kuberhealthy.name" . }}-pdb
