mirror of
https://gitlab.com/bramw/baserow.git
synced 2024-11-05 08:27:01 +00:00
20 lines
591 B
YAML
20 lines
591 B
YAML
{{- if .Values.pdb.create }}
|
|
apiVersion: policy/v1
|
|
kind: PodDisruptionBudget
|
|
metadata:
|
|
name: {{ include "baserow.fullname" . }}
|
|
namespace: {{ include "baserow.namespace" . }}
|
|
labels:
|
|
{{- include "baserow.labels" . | nindent 4 }}
|
|
spec:
|
|
{{- if .Values.pdb.minAvailable }}
|
|
minAvailable: {{ .Values.pdb.minAvailable }}
|
|
{{- end }}
|
|
{{- if and .Values.pdb.maxUnavailable (not .Values.pdb.minAvailable)}}
|
|
maxUnavailable: {{ .Values.pdb.maxUnavailable | default 1 }}
|
|
{{- end }}
|
|
selector:
|
|
matchLabels:
|
|
{{- include "baserow.selectorLabels" . | nindent 6 }}
|
|
{{- end }}
|