bitpoke / wordpress-operator

Bitpoke Kubernetes operator for WordPress
Apache License 2.0
226 stars 35 forks source link

Allow Operator to run with a RoleBinding #99

Closed dhhuynh2 closed 2 years ago

dhhuynh2 commented 2 years ago

Currently, the operator requires a ClusterRoleBinding to watch resources at a cluster level. We would like the operator to be able to run isolated to a specific namespace.

This PR would allow us to do that, by conditionally adding in a Namespace field to the manager, which would be enabled by an environment variable. The operator would then be able to use a RoleBinding rather than a ClusterRoleBinding.

Please let me know the preferred method of documenting this functionality, as well as any improvements to the suggested changes.

milero commented 2 years ago

Thank you for contributing! For the time being the operator does not have a dedicated docs section, but it would definitely be helpful to create one. For the time being you could edit the README.md of the project by adding a separate Usage section, just before the License section.