mirror of
https://github.com/penpot/penpot-helm.git
synced 2024-12-22 13:43:01 -05:00
21 lines
573 B
YAML
21 lines
573 B
YAML
|
{{- if .Values.backend.pdb.enabled -}}
|
||
|
apiVersion: policy/v1
|
||
|
kind: PodDisruptionBudget
|
||
|
metadata:
|
||
|
name: {{ include "penpot.fullname" . }}-backend
|
||
|
namespace: {{ .Release.Namespace }}
|
||
|
labels:
|
||
|
{{- include "penpot.labels" . | nindent 4 }}
|
||
|
spec:
|
||
|
{{- if .Values.backend.pdb.minAvailable }}
|
||
|
minAvailable: {{ .Values.backend.pdb.minAvailable }}
|
||
|
{{- else if .Values.backend.pdb.maxUnavailable }}
|
||
|
maxUnavailable: {{ .Values.backend.pdb.maxUnavailable }}
|
||
|
{{- else }}
|
||
|
minAvailable: 0
|
||
|
{{- end }}
|
||
|
selector:
|
||
|
matchLabels:
|
||
|
app: penpot-backend
|
||
|
{{- end -}}
|