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

feat: specific generation of roles and clusterroles #28

Conversation

matteogastaldello
Copy link
Contributor

Description of the problem
The core-provider can create a dedicated Role and ClusterRole when a composition-dynamic-controller is deployed.

An enhancement would be to inspect any GVK resource in the composition helm chart, check if that GVK is cluster or namespace scoped, and populate the Role and ClusterRole accordingly.

Solution Implemented
A specific generation of Roles and ClusterRoles has been implemented. Resources within the chart are placed either in a Role or a ClusterRole based on whether they are namespace-scoped or not.

Additional Notes

  • crdgen library updated to 0.3.5

braghettos and others added 3 commits May 21, 2024 23:52
… detection and error management when helm template is found in kind or apiVersion
@braghettos braghettos merged commit 150a90a into main May 22, 2024
2 of 3 checks passed
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.

Smarter generation of roles and clusterroles for the composition-dynamic-controller
2 participants