{{- if .Values.podDisruptionBudget.enabled }} apiVersion: policy/v1 kind: PodDisruptionBudget metadata: name: {{ .Values.fullNameOverride }} namespace: {{ .Release.Namespace }} labels: {{- with .Values.labels }} {{ toYaml . | indent 4 }} {{- end }} {{- with .Values.podDisruptionBudget.labels }} {{- toYaml . | nindent 4 }} {{- end }} spec: {{- if .Values.podDisruptionBudget.minAvailable }} minAvailable: {{ .Values.podDisruptionBudget.minAvailable }} {{- end }} {{- if .Values.podDisruptionBudget.maxUnavailable }} maxUnavailable: {{ .Values.podDisruptionBudget.maxUnavailable }} {{- end }} selector: {{- with .Values.labels }} matchLabels: {{ toYaml . | indent 6 }} {{- end }} {{- end }}