mirror of
https://github.com/cozystack/cozystack.git
synced 2026-12-05 22:53:43 +09:00
Migration 67 seeds the account Secret of every user of every MongoDB release before the chart switches, from the per-user Secret the old chart rendered, so clients keep logging in through the upgrade and the controller adopts the Secrets once the templates exist. The finish Job then strips users.*.password from the values and removes any per-user Secret Helm left behind; <release>-credentials holds only the databaseAdmin platform account and is left alone. The Job's ServiceAccount, ClusterRole and binding carry the migration number: one upgrade can run several conversion migrations in a row, and a shared ServiceAccount deleted by a later hook would cut off an earlier finish Job still running as it. Assisted-by: LLM Signed-off-by: Andrei Kvapil <kvapss@gmail.com>