{{- if .Values.resultsCache.enabled }}
apiVersion: {{ include "loki.pdb.apiVersion" . }}
kind: PodDisruptionBudget
metadata:
  name: {{ include "loki.fullname" . }}-memcached-results-cache
  namespace: {{ .Release.Namespace }}
  labels:
    {{- include "loki.selectorLabels" . | nindent 4 }}
    app.kubernetes.io/component: memcached-results-cache
spec:
  selector:
    matchLabels:
      {{- include "loki.selectorLabels" . | nindent 6 }}
      app.kubernetes.io/component: memcached-results-cache
  maxUnavailable: 1
{{- end -}}
