mirror of
https://github.com/cozystack/cozystack.git
synced 2026-12-05 14:42:05 +09:00
ClickHouse is the first kind whose operator reads no Secret and which keeps a platform account next to its tenant ones, and three things it needs are not specific to it. A tenant user under a name the converted chart refuses (the platform backup account, the engine's default user) makes the release unresolvable, so it is left out instead of converted in part. The CredentialTemplate controller adds the valuesFrom entries of a valuesPath kind only after the converted chart has rendered its templates, so that first render would carry no stored value and the chart would drop every tenant account from the engine until the next upgrade. The hook now adds the same entries ahead of the switch; the old chart ignores the values they fill. finish rotates the platform passwords tenants could read once, with the release suspended, then forces an upgrade so the chart applies them, and records the rotation on the source Secret so a rerun does not rotate twice. Assisted-by: LLM Signed-off-by: Andrei Kvapil <kvapss@gmail.com>