mirror of
https://github.com/cozystack/cozystack.git
synced 2026-11-08 21:14:56 +09:00
The image-variant switch in templates/db.yaml pins the barman-capable CNPG `system` image exactly when native barmanObjectStore backups render; a regression there silently drops backups to a barman-less `standard` image (#3300). The package is otherwise covered by helm unittest, but db.yaml and this new branching logic had none. Add tests/db_backup_image_test.yaml locking input -> rendered spec.imageName: backups off -> standard, enabled with a destination -> system, and enabled with an empty destinationPath -> standard (the two-part gate). Each case also asserts the barmanObjectStore block co-renders with the system image, so the variant switch and the object-store gate cannot drift apart. Assisted-By: Claude <noreply@anthropic.com> Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Signed-off-by: Andrey Kolkov <androndo@gmail.com>