Skip to content

Add namespace exclusion for watchers#623

Open
komapa wants to merge 2 commits intoemberstack:mainfrom
seatgeek:feature/excluded-namespaces
Open

Add namespace exclusion for watchers#623
komapa wants to merge 2 commits intoemberstack:mainfrom
seatgeek:feature/excluded-namespaces

Conversation

@komapa
Copy link
Copy Markdown

@komapa komapa commented Mar 27, 2026

The reflector watches all ConfigMaps and Secrets across every namespace in the cluster. In large clusters with thousands of ConfigMaps, this creates massive event volume — the vast majority of which are for resources with no reflector annotations. This unnecessary traffic saturates the internal bounded channel (256 slots) and can contribute to silent stalls.

This PR adds a new excludedNamespaces configuration option that accepts comma-separated glob patterns. Events from matching namespaces are dropped before entering the bounded channel, eliminating noise at the earliest possible point.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant