# grafana_charts_poddisruptionbudget-federation-frontend.yaml
{{- if and .Values.enterprise.enabled .Values.enterpriseFederationFrontend.enabled -}}
{{- if and (gt (int .Values.enterpriseFederationFrontend.replicas) 1) .Values.enterpriseFederationFrontend.podDisruptionBudget.enabled }}
{{ $dict := dict "ctx" . "component" "enterprise-federation-frontend" }}
apiVersion: {{ include "tempo.pdb.apiVersion" . }}
kind: PodDisruptionBudget
metadata:
  name: {{ include "tempo.resourceName" $dict }}
  labels:
    {{- include "tempo.labels" $dict | nindent 4 }}
  namespace: {{ .Release.Namespace }}
spec:
  selector:
    matchLabels:
      {{- include "tempo.selectorLabels" $dict | nindent 6 }}
  maxUnavailable: {{ .Values.enterpriseFederationFrontend.maxUnavailable }}
{{- end }}
{{- end -}}