{{- if .Values.podDisruptionBudget.enabled }} apiVersion: policy/v1 kind: PodDisruptionBudget metadata: name: {{ include "qdrant.fullname" . }} labels: {{- include "qdrant.labels" . | nindent 4 }} {{- include "qdrant.additionalLabels" . | nindent 4 }} {{- with .Values.additionalAnnotations }} annotations: {{- toYaml . | nindent 4 }} {{- end }} spec: {{- with .Values.podDisruptionBudget.maxUnavailable}} maxUnavailable: {{ . }} {{- end }} {{- with .Values.podDisruptionBudget.minAvailable }} minAvailable: {{ . }} {{- end }} {{- with .Values.podDisruptionBudget.unhealthyPodEvictionPolicy }} unhealthyPodEvictionPolicy: {{ . }} {{- end }} selector: matchLabels: {{- include "qdrant.selectorLabels" . | nindent 6 }} {{- end }}