operator-framework/helm-operator-plugins

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

varshaprasad96 opened this issue · 1 comments

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.

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