-
Notifications
You must be signed in to change notification settings - Fork 453
Helm chart >=5.22.0: namespaceScope=true still requires ClusterRole/ClusterRoleBinding #2594
Description
Describe the bug
After upgrading the grafana-operator Helm chart to 5.22.0+ (tested 5.22.2) and deploying with namespaceScope=true, the chart RBAC flow appears to be oriented around ClusterRole/ClusterRoleBinding.
The previously expected namespace-scoped Role + RoleBinding is not created anymore, so in clusters without permission for cluster-scoped RBAC the operator cannot reconcile Grafana CRs.
Version
Helm chart to 5.22.0+
To Reproduce
Steps to reproduce the behavior:
- Install/upgrade grafana-operator Helm chart to 5.22.2
- Set
namespaceScope=true(namespace-only installation) - Install into a cluster where creating ClusterRoles is forbidden
- Observe operator reconciliation failures
Expected behavior
With namespaceScope=true, the chart should create Role + RoleBinding and must not require any cluster-scoped RBAC (ClusterRole/ClusterRoleBinding).
Suspect component/Location where the bug might be occurring
This looks introduced by commit:
04eb1ca
Screenshots
Runtime (please complete the following information):
- OS: Linux
- Grafana Operator Version: v5.22.2
- Environment: Kubernetes
- Deployment type: Helm
Additional context
This is a common setup for namespace-scoped operators in restricted multi-tenant clusters; requiring cluster-scoped RBAC breaks upgrades for those environments.