Files
cozystack/packages/core/platform
Andrei Kvapil 94807d93f3 feat(platform): migrate Redis and Valkey passwords to minted credentials
The converted charts stop rendering <release>-auth and point the
operator at the account Secret of the default credential. Without a
migration that Secret would be seeded with a new random password, and
every existing client, and the running servers, would lose the one they
have.

Migrations 69 (Redis) and 70 (Valkey) seed that Secret from the password
in <release>-auth before the charts switch, so the operator finds the
same password under the new name; then a finish Job per kind deletes
whatever is left of the old Secret. Each Job's ClusterRole,
ServiceAccount and binding are named for its migration, so the two
conversions in one upgrade share none.

Both hold every release of their kind, suspended, until the
redis-operator Deployment runs its new revision, and the finish Jobs,
which may read Deployments, resume them. The new chart changes the pod
template, and the old operator rolls such a change by deleting the
master, which failed client writes for up to 78 s per instance on a test
cluster before the new operator, which moves the master off first and
applies the password without a restart, had started.

Assisted-by: LLM
Signed-off-by: Andrei Kvapil <kvapss@gmail.com>
2026-12-02 20:38:26 +01:00
..