mirror of
https://github.com/cozystack/cozystack.git
synced 2026-12-05 22:53:43 +09:00
The post-install/upgrade hook set ControllerConfig/default's passphraseSecretRef with a server-side kubectl apply of that one field. When the object was last written by a client-side kubectl apply, as the converted manifests of a LINSTOR migration were, kubectl's CSA-to-SSA upgrade hands every field kubectl-client-side-apply owns to the applying manager and re-sends the apply, which then removes what it does not name: LINSTOR's cluster-wide DRBD options in extraProps, which the satellites apply live on the next adjust. No field manager avoids it, since the upgrade moves the fields to whoever applies. Merge-patch the one field when the object exists and create it when it does not. A merge patch replaces only what it carries, whoever owns the rest. The script moves to hack/ so a test can run it against a client-side-applied object. Assisted-by: LLM Signed-off-by: Andrei Kvapil <kvapss@gmail.com>