Skip to content

Helm chart >=5.22.0: namespaceScope=true still requires ClusterRole/ClusterRoleBinding #2594

@peterbueschel

Description

@peterbueschel

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:

  1. Install/upgrade grafana-operator Helm chart to 5.22.2
  2. Set namespaceScope=true (namespace-only installation)
  3. Install into a cluster where creating ClusterRoles is forbidden
  4. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    triage/acceptedIndicates an issue or PR is ready to be actively worked on.

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions