feat(chart): enable persistence by default, discuss more in README

This commit is contained in:
Jack Henschel
2026-03-06 17:35:00 +01:00
parent af1a99c4dc
commit b47ef4e05d
5 changed files with 66 additions and 19 deletions
+6
View File
@@ -1,3 +1,9 @@
{{- /* Safety check: multiple replicas with local state must have persistence enabled */}}
{{- if and (gt (int .Values.replicaCount) 1) (not .Values.persistence.enabled) }}
{{- if or (eq .Values.gateway.backend.type "posix") (and .Values.iam.enabled (eq .Values.iam.type "internal")) }}
{{- fail "Multiple replicas with POSIX backend or Internal IAM require persistence.enabled=true to prevent data loss and inconsistency across pods. If using a stateless backend (e.g. S3, Azure) and external IAM, set persistence.enabled=false." }}
{{- end }}
{{- end }}
apiVersion: apps/v1
kind: Deployment
metadata: