Skip to content
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

fix: operator's cluster role permissions to match k8sgpt #258

Merged
merged 1 commit into from
Nov 12, 2023

Conversation

arbreezy
Copy link
Member

Closes #248 #252

📑 Description

This PR fixes the RBAC issues introduced in the 0.0.22 release.
Effectively K8s won't allow an SA to create cluster roles more permissive than its own cluster roles,
so we match the permission which will be eventually set for the K8sgpt cluster role.

✅ Checks

  • My pull request adheres to the code style of this project
  • My code requires changes to the documentation
  • I have updated the documentation as required
  • All the tests have passed

ℹ Additional Information

I will create a new feature request to lift and shift all the RBAC related resources to Helm chart templates which will be more clear to the user what roles will be created by K8sGPT operator whilst avoiding this matching pattern between the two cluster roles

Signed-off-by: Aris Boutselis <arisboutselis08@gmail.com>
@arbreezy arbreezy requested review from a team as code owners November 10, 2023 17:47
@AlexsJones AlexsJones merged commit 513bf82 into k8sgpt-ai:main Nov 12, 2023
6 checks passed
@arbreezy arbreezy deleted the fix/chart-rbac-manager branch November 12, 2023 12:42
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.

[Bug]: Wrong RBAC rules for operator installed via Helm Chart
2 participants