plugin-barman-cloud/internal/cnpgi
Gabriele Quaresima 176b55de78 chore: add unit tests, improve log and code readability
- Add 'namespace' structured field to the error log in Reconcile when
  a role reconciliation fails
- Rename misleading local variable 'role' to 'roleBinding' in
  ensureRoleBinding to match the actual type
- Add EnsureRole tests: transient Role creation error is propagated;
  pre-existing unrelated labels are preserved after patch
- Add SetControllerReference test: returns an error when the owner
  does not implement runtime.Object
- Add ObjectStoreReconciler tests: Role list failure and ObjectStore
  Get transient error both surface through the reconcile return value
- Add scheme tests: AddCNPGToScheme with default and custom group/version

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
Signed-off-by: Gabriele Quaresima <gabriele.quaresima@enterprisedb.com>
2026-04-10 16:59:34 +02:00
..
common fix: disable management of end-of-wal file flag during backup restoration (#604) 2025-10-17 19:16:54 +02:00
instance fix(rbac): reconcile Role when ObjectStore spec changes 2026-04-10 10:03:00 +02:00
metadata fix: discover affected Roles by label instead of listing Clusters 2026-04-10 10:03:00 +02:00
operator chore: add unit tests, improve log and code readability 2026-04-10 16:59:34 +02:00
restore fix(rbac): reconcile Role when ObjectStore spec changes 2026-04-10 10:03:00 +02:00