Namespace-Scoped Mode¶
By default, OpenDepot controllers use ClusterRole/ClusterRoleBinding and watch resources across all namespaces. To restrict controllers to a single namespace, enable namespace-scoped mode:
When rbac.scopeToNamespace is true:
- RBAC resources are created as
Role/RoleBindingscoped toglobal.namespace - Each controller only watches and reconciles resources in that namespace
- The
WATCH_NAMESPACEenvironment variable is automatically set on controller pods
This is useful in multi-tenant clusters or environments where cluster-wide permissions are not available.