mirror of
https://github.com/cozystack/cozystack.git
synced 2026-12-01 20:56:02 +09:00
From v0.3.0 every blockstor component finds the Secret that unlocks the master key through ControllerConfig/default, in the piraeus shape: linstor-passphrase, key MASTER_PASSPHRASE. Naming it is what lets a cluster migrated from LINSTOR keep its passphrase, and what blockstor's runbook assumes under Cozystack. The field is set by a post-install/post-upgrade Job rather than by a ControllerConfig in the release. Helm resolves every kind of a release before applying any, and the CRD is a template of this release, so the object would fail the first install of the backend. blockstor also creates and writes the same object at runtime, so the Job server-side applies only passphraseSecretRef under its own field manager and leaves the rest to blockstor. The controller does nothing with the keyring until the reference is there, so starting first is harmless. Assisted-by: LLM Signed-off-by: Andrei Kvapil <kvapss@gmail.com>