blob: 01d45f7f3b0e571404bd56525d6b6bd5b73de1c5 [file] [log] [blame]
Mohammed Naser8a2c8fb2023-02-19 17:23:55 +00001{{- if .Values.podDisruptionBudget.enabled }}
2apiVersion: {{ template "policy.poddisruptionbudget.apiVersion" . }}
3kind: PodDisruptionBudget
4metadata:
5 name: {{ template "vector.fullname" . }}
6 labels:
7 {{- include "vector.labels" . | nindent 4 }}
8spec:
9{{- with .Values.podDisruptionBudget.minAvailable }}
10 minAvailable: {{ . }}
11{{- end }}
12{{- with .Values.podDisruptionBudget.maxUnavailable }}
13 maxUnavailable: {{ . }}
14{{- end }}
15 selector:
16 matchLabels:
17 {{- include "vector.selectorLabels" . | nindent 6 }}
18{{- end }}