[release/v25.1.x] operator: itemize RBAC#593
Merged
RafalKorepta merged 1 commit intorelease/v25.1.xfrom Mar 28, 2025
Merged
Conversation
Prior to this commit the RBAC declarations of the various controllers were littered across the repo. This made it exceptionally difficult to understand where permissions came from. It also made any attempt to test that the redpanda and operator charts' RBACs were correctly configured nearly impossible as the charts themselves had to itemize permissions while their sources did not. This commit divides each distinct controller into its own package which allows `controller-gen` to build the (Cluster)Roles for a specific controller. The vast majority of changes in the commit is just code movement. Notable exceptions are: - Duplication of `redpanda_controller_utils.go`. This file is cursed and will be removed soon any how. I'm accepting the evil of duplicating it. - RBAC is now spit into `./operator/config/rbac/itemized/` - An empty `rpkdebugbundle` package has been added to track the permissions required for `rpk debug bundle`. See also: [K8S-537], [K8S-495] (cherry picked from commit ec56b44)
Merged
chrisseto
approved these changes
Mar 28, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Backport
This will backport the following commits from
maintorelease/v25.1.x:Questions ?
Please refer to the Backport tool documentation
Reference
https://redpandadata.atlassian.net/browse/K8S-495