Skip to content

Commit

Permalink
fix(chart): properly deal with sqlite volume issues
Browse files Browse the repository at this point in the history
  • Loading branch information
TheDevMinerTV committed Aug 26, 2024
1 parent ccdb36e commit a265611
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions chart/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,15 @@ metadata:
labels:
{{- include "versiago.labels" . | nindent 4 }}
spec:
{{- if eq .Values.database.type "sqlite" }}
{{- if gt (int .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:
Expand Down

0 comments on commit a265611

Please sign in to comment.