chore(kube): bump chart Helm release stalwart to v1.1.1

Stalwart 0.16 stores cannot be opened by 1.x; data must be copied with
stalwartlabs/stalwart-migrate (v1.0.8) into /var/lib/stalwart/v1 on the data
PVC. The chart-native v1Migrate job is not usable here (no PVC mount, SQL
stores only), so v1Migrate.alreadyDone=true clears the chart guard.

Required runtime sequence before pushing/applying:
1. Snapshot the data-stalwart-stalwart-0 PVC in Longhorn.
2. While 0.16 still runs, incremental migrate from a one-off pod mounting the
   PVC (image stalwartlabs/stalwart-migrate:v1.0.8, UID/GID 2000):
   source RocksDb /var/lib/stalwart, target RocksDb /var/lib/stalwart/v1.
3. Cutover: flux suspend hr stalwart -n stalwart; scale sts to 0;
   run final 'stalwart-migrate run --final --yes'; push; flux resume.
4. After upgrade, restart once with STALWART_UPDATE_ROLE_PERMISSIONS=true
   (extraEnv) to grant new default-role permissions, then remove it.
Expect FTS index rebuild and OAuth re-logins after cutover.
This commit is contained in:
vhaudiquet authored and Valentin Haudiquet committed 2026-11-23 00:45:52 +01:00
1 parent e256c9a642
commit 598afce7ce
2 files changed
+15 -3

No files matched your search

@@ -14,7 +14,7 @@ spec:
name: stalwart-helm
namespace: stalwart
chart: stalwart
version: "0.9.7"
version: "1.1.1"
interval: 1m
valuesFrom:
- kind: Secret
@@ -7,7 +7,7 @@
# Container image
image:
repository: stalwartlabs/stalwart
tag: v0.16.27
tag: v1.1.1
pullPolicy: IfNotPresent
# Single-node RocksDB deployment.
replicaCount: 1
@@ -53,7 +53,7 @@ mailTls:
# and are managed via JMAP/WebUI.
config:
'@type': RocksDb
path: /var/lib/stalwart
path: /var/lib/stalwart/v1
# Main Service: ClusterIP. Used by the Ingress for the management WebUI (mgmt)
# and for in-cluster access. Mail L4 ports are exposed separately via mailService.
service:
@@ -119,6 +119,18 @@ podSecurityContext:
seccompProfile:
type: RuntimeDefault
containerSecurityContext: {}
# v1 migration (0.16 -> 1.x) is done manually with stalwartlabs/stalwart-migrate:v1.0.8
# into /var/lib/stalwart/v1 (a subdir of the data PVC) while 0.16 is still running,
# because the chart-native v1Migrate job does not mount the data PVC and only supports
# network (SQL) stores, not RocksDB. alreadyDone=true clears the chart refuse-to-upgrade
# guard; the first upgrade writes the stalwart-stalwart-v1-migrated marker ConfigMap.
# Run BEFORE pushing this change: snapshot the PVC, incremental migrate, then at
# cutover: flux suspend hr stalwart -n stalwart; scale sts to 0; final migrate run
# --final --yes; push; flux resume. Afterwards restart once with
# STALWART_UPDATE_ROLE_PERMISSIONS=true (extraEnv) to grant new default-role perms.
v1Migrate:
enabled: false
alreadyDone: true
sops:
lastmodified: "2026-08-26T19:28:03Z"
mac: ENC[AES256_GCM,data:Fh5vxhnPiSRaC/xMV06GwoNAqfiZYJHFj3xKrWzMwau2aC62JTDkEpmm/UN7w4ILQk05xjUkcoSJF5IcKT6+gjkLRVt8qwiarJDZ3SbwM11x7rm4m0wBTJIMeytq1h68l5mQ9i5yW5bxnBNDpUqaAAmq/Ev0/+6lspXw/kfJTUw=,iv:Tg5ZYPd2bpTN/gu99oJEcl0aKiNtX5xca0MUfzCXILo=,tag:2IKyAEuTjp8QhhUaNb1+5A==,type:str]