mirror of
https://github.com/cozystack/cozystack.git
synced 2026-12-05 22:53:43 +09:00
Some charts keep each tenant password in a Secret of its own rather than under the user name in <release>-credentials: MongoDB renders <release>-user-<name> with a password key, which the operator reads. The conversion has to seed account Secrets from there, and finish has to remove those Secrets if Helm leaves one behind, while the platform Secret of such a kind stays untouched. Two flags describe the source, so that a kind keyed by something other than the user name can reuse them: --source-key names the key holding the password (the user name when empty), and --source-per-account reads it from <release><source-suffix><user> rather than from the single source Secret. A per-account Secret is never keyed by user name, so the second requires the first. Assisted-by: LLM Signed-off-by: Andrei Kvapil <kvapss@gmail.com>