blob: bb1e1ccc1cb9bc793cd700b0bf5ae30c8447598d [file] [log] [blame]
Mohammed Naser8a2c8fb2023-02-19 17:23:55 +00001{{- $isSingleBinary := eq (include "loki.deployment.isSingleBinary" .) "true" -}}
2{{- if and .Values.podDisruptionBudget $isSingleBinary -}}
3---
Giovanni Tirloni59219b62024-04-09 14:50:25 -03004apiVersion: policy/v1
Mohammed Naser8a2c8fb2023-02-19 17:23:55 +00005kind: PodDisruptionBudget
6metadata:
7 name: {{ template "loki.fullname" . }}
Giovanni Tirloni59219b62024-04-09 14:50:25 -03008 namespace: {{ $.Release.Namespace }}
Mohammed Naser8a2c8fb2023-02-19 17:23:55 +00009 labels:
10 {{- include "loki.labels" . | nindent 4 }}
11spec:
12 selector:
13 matchLabels:
14 {{- include "loki.singleBinarySelectorLabels" . | nindent 6 }}
15{{ toYaml .Values.podDisruptionBudget | indent 2 }}
16{{- end }}