Skip to content

Conversation

@BobVanB
Copy link
Contributor

@BobVanB BobVanB commented Nov 5, 2025

Probleem

Momenteel kan een operator of controller slechts één van de volgende doen:

  • Watch op één namespace (beperkt bereik)
  • Watch op alle namespaces (geen mogelijkheid om specifieke namespaces uit te sluiten)

Dit maakt het lastig om een clusterbrede watch te hebben, terwijl bepaalde namespaces (bijvoorbeeld kube-system of interne namespaces) genegeerd moeten worden.

Oplossing

Deze wijziging introduceert:

  • Een optie om één service account clusterbreed te laten luisteren.
  • Mogelijkheid om namespaces uit te sluiten op basis van een selector (bijvoorbeeld label of naam).

Dit geeft meer flexibiliteit en voorkomt onnodige events uit niet-relevante namespaces.

Implementatie

  • Toegevoegd: ondersteuning voor namespace-exclusie via selector.
  • Documentatie bijgewerkt om nieuwe configuratieopties te tonen.
  • Unit tests toegevoegd voor filtering op namespace.

Voordelen

  • Minder ruis in event-streams.
  • Betere performance door het negeren van irrelevante namespaces.
  • Eenvoudigere configuratie voor clusterbrede operators.

Testen

  • Deploy operator met clusterbrede permissies.
  • Configureer namespace-exclusie via selector.
  • Verifieer dat resources in uitgesloten namespaces niet worden verwerkt.

Breaking Changes?

Nee, bestaande configuraties blijven werken. Nieuwe functionaliteit is optioneel.

@prodsecmachine
Copy link
Collaborator

prodsecmachine commented Nov 5, 2025

Snyk checks have passed. No issues have been found so far.

Status Scanner Critical High Medium Low Total (0)
Licenses 0 0 0 0 0 issues
Open Source Security 0 0 0 0 0 issues

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

@botelastic botelastic bot added the triage label Nov 5, 2025
@BobVanB BobVanB changed the title feat: add flag namespace-label-selector to filter namespaces Allow cluster-wide watch with namespace exclusion via selector Nov 5, 2025
@github-actions
Copy link

github-actions bot commented Nov 5, 2025

🔍 Preview links for changed docs

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants