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