From 1e18dad69fb28025c97dfd91e9cd60c9422fcea0 Mon Sep 17 00:00:00 2001 From: DevMiner Date: Tue, 27 Aug 2024 01:09:32 +0200 Subject: [PATCH] fix(chart): properly deal with sqlite volume issues --- chart/templates/deployment.yaml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/chart/templates/deployment.yaml b/chart/templates/deployment.yaml index e24bc3b..300e130 100644 --- a/chart/templates/deployment.yaml +++ b/chart/templates/deployment.yaml @@ -5,6 +5,15 @@ metadata: labels: {{- include "versiago.labels" . | nindent 4 }} spec: + {{- if eq .Values.database.type "sqlite" }} + {{- if gt .Values.pod.replicas 1 }} + {{- fail "Having multiple replicas with a SQLite database isn't currently possible" }} + {{- end }} + + strategy: + type: Recreate + {{- end }} + replicas: {{ .Values.pod.replicas }} selector: matchLabels: