In shared k8s clusters, users could lack the possibility to create roles and rolebindings for every Helm release. Using therefore the helm charts provided in this repo in such an environment wouldn't be possible.
Making the creation of a role and a rolebinding configurable, in values.yaml, would help in this case. Both can be created in advance and shared among all Solace Helm releases.
This enhancement can be implemented by adding a role.create and roleBinding.create flags.
- If role.create and roleBinding.create are set to false, nothing is created.
- If role.create is set to false and roleBinding.create is set to true, then a roleBinding.roleRef has to be specified. A roleBinding will be created and will reference the specified role.