{{- if and .Values.web.enabled .Values.web.podDisruptionBudget.enabled }}
apiVersion: policy/v1
kind: PodDisruptionBudget
metadata:
  name: {{ include "finaegis.fullname" . }}-web
  labels:
    {{- include "finaegis.labels" . | nindent 4 }}
    app.kubernetes.io/component: web
spec:
  minAvailable: {{ .Values.web.podDisruptionBudget.minAvailable }}
  selector:
    matchLabels:
      {{- include "finaegis.selectorLabels" . | nindent 6 }}
      app.kubernetes.io/component: web
{{- end }}
