Skip to content

Conversation

kayahk
Copy link
Contributor

@kayahk kayahk commented Sep 25, 2025

feat: add custom RBAC rules support in values.yaml and clusterrole template

In case we want to add a scrape config that would access objects (like custom resources) outside the scope of the default clusterrole permissions, we need to have an option to define the rules that should be added to the role.

  • Introduced an rbac.extraRules section in values.yaml to allow users to define additional RBAC rules for the collector.
  • Updated clusterrole.yaml to incorporate the new RBAC rules dynamically based on the configuration.

Hakan Kaya added 2 commits September 25, 2025 18:51
…mplate

- Introduced an `rbac.extraRules` section in values.yaml to allow users to define additional RBAC rules for the collector.
- Updated clusterrole.yaml to incorporate the new RBAC rules dynamically based on the configuration.
- Cleared the `rbac` section in values.yaml to provide a clean slate for users.
- Commented out the previous `extraRules` example to avoid confusion while maintaining reference for future customization.
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds support for custom RBAC rules in the OpenObserve collector Helm chart to enable access to resources outside the default ClusterRole permissions, such as custom resources from third-party API groups.

  • Added rbac.extraRules configuration section in values.yaml with example documentation
  • Updated clusterrole.yaml template to dynamically include additional RBAC rules
  • Minor formatting change to scrape_configs array in prometheus receiver configuration

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
charts/openobserve-collector/values.yaml Introduces rbac.extraRules configuration with documented examples and minor prometheus config formatting
charts/openobserve-collector/templates/clusterrole.yaml Adds template logic to include custom RBAC rules from values configuration

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant