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