helm-operator-plugins icon indicating copy to clipboard operation
helm-operator-plugins copied to clipboard

Scaffolding RBAC when go and helm apis are specified in the project

Open varshaprasad96 opened this issue 3 years ago • 1 comments
trafficstars

Problem: When using create api command with both helm and go plugin, the roles.yaml in config/ directory is rewritten. However, the other rbac manifests which specify the permissions to view and edit the custom object is present. This requires an additional step of modifying the rbac manually and applying it to the cluster.

Possible solution: Scaffold roles for each APIs in separate files and apply them in the cluster.

varshaprasad96 avatar Dec 09 '21 19:12 varshaprasad96

We can have roles.yaml for go api, and have a separate Kustomize file that has rbac for helm api.

varshaprasad96 avatar Dec 14 '21 16:12 varshaprasad96