{{- if .Values.podDisruptionBudget.enabled }} apiVersion: policy/v1 kind: PodDisruptionBudget metadata: name: {{ include "bifrost.fullname" . }} namespace: {{ .Release.Namespace }} labels: {{- include "bifrost.labels" . | nindent 4 }} spec: {{- if .Values.podDisruptionBudget.minAvailable }} minAvailable: {{ .Values.podDisruptionBudget.minAvailable }} {{- else }} maxUnavailable: {{ .Values.podDisruptionBudget.maxUnavailable | default "10%" }} {{- end }} selector: matchLabels: {{- include "bifrost.serverSelectorLabels" . | nindent 6 }} {{- end }}