# grafana_charts_poddisruptionbudget-memcached.yaml
{{- if and (gt (int .Values.memcached.replicas) 1) .Values.memcached.podDisruptionBudget.enabled }}
{{ $dict := dict "ctx" . "component" "memcached" }}
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.memcached.maxUnavailable }}
{{- end }}