Skip to content

Support namespace-scoped controller deployment via WATCH_NAMESPACE #484

@AKarbas

Description

@AKarbas

The controller currently requires a cluster-wide ClusterRole. controller-runtime supports restricting the informer cache to specific namespaces via cache.Options.DefaultNamespaces, which would allow deployment with a namespaced Role/RoleBinding instead — giving API-server-level enforcement rather than just cache filtering.

Given the controller can manage sandboxes running untrusted code, least-privilege RBAC matters more here than for typical operators.

Plugging #483, the ns list can be a helm value and default to all if not set.

Happy to send a PR.

Metadata

Metadata

Assignees

No one assigned

    Labels

    priority/backlogHigher priority than priority/awaiting-more-evidence.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Status
    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions