1 {{- if and .Values.podDisruptionBudget.enabled (gt (.Values.replicaCount | int) 1) }}
2 apiVersion: {{ include "capabilities.podDisruptionBudget.apiVersion" . }}
3 kind: PodDisruptionBudget
6 app: {{ template "oauth2-proxy.name" . }}
7 {{- include "oauth2-proxy.labels" . | indent 4 }}
8 name: {{ template "oauth2-proxy.fullname" . }}
12 {{- include "oauth2-proxy.selectorLabels" . | indent 6 }}
13 minAvailable: {{ .Values.podDisruptionBudget.minAvailable }}