plugin-barman-cloud/internal/cnpgi/common
Armando Ruocco a19f89b57f
fix(restore): bind custom CNPG group and version env vars
The restore command was missing the CUSTOM_CNPG_GROUP and
CUSTOM_CNPG_VERSION environment variable bindings that other
commands (e.g. instance) already had.

Signed-off-by: Armando Ruocco <armando.ruocco@enterprisedb.com>

refactor(restore): use shared scheme generation for custom CNPG groups

Extract generateScheme() from the instance package into
common.GenerateScheme() and use it from both instance and
restore managers. The restore manager previously used a
hardcoded init() that ignored CUSTOM_CNPG_GROUP and
CUSTOM_CNPG_VERSION, causing restore jobs to fail when
running under a non-standard CNPG API group.

Signed-off-by: Marco Nenciarini <marco.nenciarini@enterprisedb.com>
2026-04-13 11:31:13 +02:00
..
check.go feat(ip): assign copyright to the Linux Foundation (#571) 2025-10-07 18:06:06 +02:00
common.go feat(ip): assign copyright to the Linux Foundation (#571) 2025-10-07 18:06:06 +02:00
doc.go feat(ip): assign copyright to the Linux Foundation (#571) 2025-10-07 18:06:06 +02:00
errors.go feat(ip): assign copyright to the Linux Foundation (#571) 2025-10-07 18:06:06 +02:00
health.go feat(ip): assign copyright to the Linux Foundation (#571) 2025-10-07 18:06:06 +02:00
scheme.go fix(restore): bind custom CNPG group and version env vars 2026-04-13 11:31:13 +02:00
wal_import.go feat(ip): assign copyright to the Linux Foundation (#571) 2025-10-07 18:06:06 +02:00
wal.go fix: disable management of end-of-wal file flag during backup restoration (#604) 2025-10-17 19:16:54 +02:00