forked from vikunja/helm-chart
19 lines
471 B
YAML
19 lines
471 B
YAML
{{- if .Values.api.pdb.enabled }}
|
|
apiVersion: policy/v1
|
|
kind: PodDisruptionBudget
|
|
metadata:
|
|
name: {{ include "vikunja.apiFullname" . }}
|
|
labels:
|
|
{{- include "vikunja.labels" . | nindent 4 }}
|
|
spec:
|
|
{{- with .Values.api.pdb.maxUnavailable }}
|
|
maxUnavailable: {{ . }}
|
|
{{- end }}
|
|
{{- with .Values.api.pdb.minAvailable }}
|
|
minAvailable: {{ . }}
|
|
{{- end }}
|
|
selector:
|
|
matchLabels:
|
|
{{- include "vikunja.apiSelectorLabels" . | nindent 6 }}
|
|
{{- end }}
|