plugin-barman-cloud/config
Armando Ruocco 064864ba72 fix(rbac): reconcile Role when ObjectStore spec changes
When an ObjectStore's credentials change (e.g., secret rename), the
RBAC Role granting the Cluster's ServiceAccount access to those secrets
was not updated because nothing triggered a Cluster reconciliation.

Implement the ObjectStore controller's Reconcile to detect referencing
Clusters and update their Roles directly. Extract ensureRole into a
shared rbac.EnsureRole function used by both the Pre hook and the
ObjectStore controller.

The shared EnsureRole accepts optional beforeCreate callbacks so the
Pre hook can set owner references on Role creation, while the
ObjectStore controller path skips ownership (it only updates existing
Roles).

Handle deleted ObjectStores gracefully by skipping NotFound errors
during Role reconciliation, and filter status-only changes with
GenerationChangedPredicate.

Add RBAC permission for the plugin to list/watch Clusters so the
ObjectStore controller can find affected Clusters. Regenerate
config/rbac/role.yaml.

Signed-off-by: Armando Ruocco <armando.ruocco@enterprisedb.com>
2026-03-27 11:21:34 +01:00
..
crd chore(deps): update all cloudnative-pg daggerverse dependencies to 9d731d1 (#805) 2026-03-12 12:08:21 +01:00
default feat(rbac)!: prefix all resource names to avoid cluster conflicts (#593) 2025-10-27 15:08:11 +01:00
manager feat: operator plugin and manifests (#18) 2024-10-01 15:40:48 +02:00
network-policy chore: scaffold (#2) 2024-09-26 11:52:56 +02:00
prometheus chore: scaffold (#2) 2024-09-26 11:52:56 +02:00
rbac fix(rbac): reconcile Role when ObjectStore spec changes 2026-03-27 11:21:34 +01:00
samples feat: sidecar role and rolebinding (#23) 2024-10-02 15:03:07 +02:00