{{- if .Values.podDisruptionBudgets.enabled }} {{- if .Capabilities.APIVersions.Has "policy/v1" -}} apiVersion: policy/v1 {{- else}} apiVersion: policy/v1beta1 {{- end }} kind: PodDisruptionBudget metadata: name: "{{ include "appsmith.fullname" . }}-pdb" namespace: {{ include "appsmith.namespace" . }} spec: minAvailable: {{ .Values.podDisruptionBudgets.minAvailable }} selector: matchLabels: {{- include "appsmith.selectorLabels" . | nindent 6 }} {{- end }}