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