Files
Andrey KolkovandClaude Opus 4.8 55d626c141 test(keycloak): cover keycloak-db backup image-variant gate
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>
2026-07-15 14:49:16 +04:00
..