{{- if and .Values.podDisruptionBudget (gt (int .Values.replicaCount) 1) }} apiVersion: policy/v1 kind: PodDisruptionBudget metadata: name: {{ include "podinfo.fullname" . }} namespace: {{ include "podinfo.namespace" . }} labels: {{- include "podinfo.labels" . | nindent 4 }} spec: selector: matchLabels: {{- include "podinfo.selectorLabels" . | nindent 6 }} {{- toYaml .Values.podDisruptionBudget | nindent 2 }} {{- end }}