I needed this for something I was working on, but I noticed #62 was kinda stalled. Thanks to @rchenzheng for doing all of the hard work. This PR addresses the comments in #62.
This change creates a ClusterRoleBinding conditionally if all namespaces are to be watched. By default, all namespaces are watched, to match the default behaviour when deploying the operator. This behaviour can be explicitly opted into by specifying an empty list for operator.watchNamespace.
I needed this for something I was working on, but I noticed #62 was kinda stalled. Thanks to @rchenzheng for doing all of the hard work. This PR addresses the comments in #62.
This change creates a ClusterRoleBinding conditionally if all namespaces are to be watched. By default, all namespaces are watched, to match the default behaviour when deploying the operator. This behaviour can be explicitly opted into by specifying an empty list for
operator.watchNamespace
.See also:
54
https://github.com/1Password/onepassword-operator/pull/40