Skip to content

feat(plugin-barman-cloud): make the ClusterRole's CNPG API group configurable#945

Open
mnencia wants to merge 1 commit into
mainfrom
dev/plugin-barman-cloud-rbac-group
Open

feat(plugin-barman-cloud): make the ClusterRole's CNPG API group configurable#945
mnencia wants to merge 1 commit into
mainfrom
dev/plugin-barman-cloud-rbac-group

Conversation

@mnencia

@mnencia mnencia commented Jul 9, 2026

Copy link
Copy Markdown
Member

The ClusterRole grants get/list/watch on backups and update on clusters/finalizers only in the postgresql.cnpg.io API group. Any CloudNativePG-based operator whose Cluster CRD lives under a different API group can never satisfy Kubernetes' OwnerReferencesPermissionEnforcement admission check when the plugin creates its per-Cluster Role/RoleBinding with blockOwnerDeletion: true, so reconciliation gets stuck permanently for every plugin-backed Cluster.

Add rbac.cnpgGroup (default postgresql.cnpg.io) and template both rules with it, so operators built on a renamed CRD group can install this chart with one value set instead of hand-patching the ClusterRole after install.

@dosubot dosubot Bot added the size:XS This PR changes 0-9 lines, ignoring generated files. label Jul 9, 2026
The ClusterRole grants get/list/watch on backups and update on
clusters/finalizers only in the postgresql.cnpg.io API group. Any
CloudNativePG-based operator whose Cluster CRD lives under a different
API group can never satisfy Kubernetes'
OwnerReferencesPermissionEnforcement admission check when the plugin
creates its per-Cluster Role/RoleBinding with blockOwnerDeletion: true,
so reconciliation gets stuck permanently for every plugin-backed
Cluster.

Add rbac.cnpgGroup (default postgresql.cnpg.io) and template both
rules with it, so operators built on a renamed CRD group can install
this chart with one value set instead of hand-patching the ClusterRole
after install.

Signed-off-by: Marco Nenciarini <marco.nenciarini@enterprisedb.com>
@mnencia mnencia force-pushed the dev/plugin-barman-cloud-rbac-group branch from 1705c40 to c9e398f Compare July 9, 2026 16:28
@mnencia mnencia changed the title feat(rbac): make the ClusterRole's CNPG API group configurable feat(plugin-barman-cloud): make the ClusterRole's CNPG API group configurable Jul 9, 2026
@dosubot dosubot Bot added the lgtm This PR has been approved by a maintainer label Jul 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

lgtm This PR has been approved by a maintainer size:XS This PR changes 0-9 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants