Skip to content

Generate Kubernetes Resource a.k.a. RBAC #1765

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
csviri opened this issue Feb 10, 2023 · 4 comments
Open

Generate Kubernetes Resource a.k.a. RBAC #1765

csviri opened this issue Feb 10, 2023 · 4 comments
Labels
feature needs-discussion Issue needs to be discussed more before working on it
Milestone

Comments

@csviri
Copy link
Collaborator

csviri commented Feb 10, 2023

First we should investigate how complex this would be, since we would need a different approach that is now in Quarkus Operator SDK

@csviri csviri self-assigned this Feb 10, 2023
@csviri csviri added this to the 4.4 milestone Feb 10, 2023
@metacosm
Copy link
Collaborator

Personally, I think the SDK should focus on core functionality (and there's still a bit to do there) and leverage other tools fore additional support. Supporting RBAC/OLM generation at the SDK level would be quite an undertaking because none of the infrastructure needed for it exists.

@csviri csviri added needs-discussion Issue needs to be discussed more before working on it feature labels Feb 16, 2023
@csviri
Copy link
Collaborator Author

csviri commented Feb 22, 2023

none of the infrastructure needed for it exists

what do you mean by this exactly?

I see couple of options:

  • If dependent resources used, it can be generated from that
  • We could introduce registering informers with annotations (this would make also managed dependent resources nicer, when sharing event source). And generate basic rback from that.
  • We could simply introduce dedicated annotation for this, just like in kubebuilder: https://book.kubebuilder.io/reference/markers/rbac.html

@LucaMertens
Copy link

I really like Quarkus, but I think it's not ideal that some very useful features require using Quarkus. In an ideal world (and I know that this completely neglects the required effort for this), rbac-generation would be available as an additional dependency, like the crd-generator. This way, it would not be part of the core-SDK, but as a 'plugin'.

@metacosm
Copy link
Collaborator

It's also worth noting that some of that functionality could be addressed at the operator-sdk plugin level.

@csviri csviri modified the milestones: 4.4, 5.0 Jun 27, 2023
@csviri csviri modified the milestones: 5.0, 5.1 Feb 26, 2024
@csviri csviri removed their assignment Feb 18, 2025
@csviri csviri changed the title Moving OLM and RBAC related resource generator to the core Generate Kubernetes Resource a.k.a. RBAC Feb 18, 2025
@csviri csviri modified the milestones: 5.1, 5.x May 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature needs-discussion Issue needs to be discussed more before working on it
Projects
None yet
Development

No branches or pull requests

3 participants