0
Fork 0
mirror of https://github.com/penpot/penpot-helm.git synced 2024-12-22 05:32:59 -05:00
penpot-helm/charts/penpot/templates/exporter-deployment-pdb.yml
2024-09-09 18:57:08 +02:00

20 lines
580 B
YAML

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