Skip to content

Add Watch namespace support #196

@R1-lav

Description

@R1-lav

Hello, I worked on a small PR that adds optional namespace scoping to the Temporal Worker Controller.

The controller can be restricted to a single namespace or a comma-separated
list of namespaces using the --watch-namespace flag or WATCH_NAMESPACE
environment variable.

When multiple namespaces are specified, the controller uses a multi-namespaced
cache and does not require cluster-wide watch permissions.

If unset, the controller preserves its existing cluster-wide behavior.

I also modified the rbac.yaml file to automatically create Roles instead of ClusterRoles when a specific key is set in the values (only usable when only one namespace is specified)

Tested on my side without any issue.

Could I create the pullRequest for review ?

Many thanks !

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions