0
Fork 0
mirror of https://github.com/penpot/penpot-helm.git synced 2024-12-22 21:53:14 -05:00
penpot-helm/charts/penpot/templates/frontend-deployment-pdb.yml

21 lines
580 B
YAML
Raw Normal View History

{{- if .Values.frontend.pdb.enabled -}}
apiVersion: policy/v1
kind: PodDisruptionBudget
metadata:
name: {{ include "penpot.fullname" . }}-frontend
namespace: {{ .Release.Namespace }}
labels:
{{- include "penpot.labels" . | nindent 4 }}
spec:
{{- if .Values.frontend.pdb.minAvailable }}
minAvailable: {{ .Values.frontend.pdb.minAvailable }}
{{- else if .Values.frontend.pdb.maxUnavailable }}
maxUnavailable: {{ .Values.frontend.pdb.maxUnavailable }}
{{- else }}
minAvailable: 0
{{- end }}
selector:
matchLabels:
app: penpot-frontend
{{- end -}}