Files
cozystack/packages/system/linstor/hack
Andrei Kvapil 185b582864 fix(linstor): set the passphrase ref without dropping DRBD options
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>
2026-11-29 23:04:20 +01:00
..