Skip to content

feat: Add support for rbac resources #797

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

robertoriv
Copy link

This PR adds some basic support for RBAC as documented here: https://hub.cloudquery.io/plugins/source/cloudquery/k8s/latest/docs#kubernetes-service-account

Given that a kubernetes deployment of cloudquery can't really work without a corresponding role, it might be useful to include it.

The feature is off by default (rbac.create = false). And should continue to produce the previous configuration unless the user wants the rbac functionality turned on.

I went ahead and version-bumped the Chart.yaml file. Not sure if that's required, or handled by CI. Please let me know if I need to make any changes.

@robertoriv robertoriv changed the title feat: add support for rbac resources feat: Add support for rbac resources Jun 18, 2025
@erezrokah erezrokah requested review from murarustefaan and savme June 24, 2025 09:01
Copy link
Contributor

@murarustefaan murarustefaan left a comment

Choose a reason for hiding this comment

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

Hey @robertoriv! 👋🏽

Thanks for the contribution, I remember some folks have asked for something like this in the past, but we were reluctant to add it since this chart is not really specific to the k8s source plugin but rather to running cloudquery on k8s, agnostic of the plugins used.

However, since the defaults are sane and do not require lots of extra configurations to make this work, we can indeed add this to the chart.

Do resolve the CR comments and feel free to request another review. 🙏🏽

@@ -14,7 +14,7 @@ sources:
maintainers:
- name: yevgenypats
email: [email protected]
version: 38.2.0
Copy link
Contributor

Choose a reason for hiding this comment

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

Version bumps are handled automatically by CI based on the type of commit.
In this case, since the commit is a feat:, the minor will be bumped which is correct.

Do remove this code change here.

@@ -1,6 +1,6 @@
# cloudquery

![Version: 38.2.0](https://img.shields.io/badge/Version-38.2.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 6.20.2](https://img.shields.io/badge/AppVersion-6.20.2-informational?style=flat-square)
Copy link
Contributor

Choose a reason for hiding this comment

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

Same as the above, do remove this code change.

Comment on lines -69 to -70
----------------------------------------------
Autogenerated from chart metadata using [helm-docs v1.11.0](https://github.com/norwoodj/helm-docs/releases/v1.11.0)
Copy link
Contributor

Choose a reason for hiding this comment

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

Why did this get removed?

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.

2 participants