Commit Graph
9 Commits
Author SHA1 Message Date
Michał MarszałekandClaude Opus 4.8 50153d05ea feat: scoped multi-namespace mode (Role per namespace, no ClusterRole)
Add a third RBAC posture between watch-globally (ClusterRole) and single
namespace: give Reloader an explicit list of namespaces to watch. The chart
creates a namespace-scoped Role + RoleBinding in each listed namespace (no
ClusterRole), and one install covers them all.

Go:
- new --namespaces flag / options.Namespaces
- resolveWatchNamespaces() picks list -> KUBERNETES_NAMESPACE -> all
- controller creation loops over the watched namespaces
- namespaces-to-ignore is now only honored in global mode (watchGlobally=true);
  in single-namespace and scoped modes the watched set is already explicit

Helm:
- new reloader.namespaces value (active when watchGlobally=false); accepts either
  a YAML list or a comma-separated string for consistency with the sibling
  namespace options
- reloader-watchNamespaces helper (release ns always auto-included, deduped)
- shared reloader-namespaced-rules template reused per namespace
- role.yaml/rolebinding.yaml range over the list; deployment passes --namespaces
- --namespaces-to-ignore only rendered when watchGlobally=true
- fail guard for watchGlobally=true + namespaces set

Tests: unit test for resolveWatchNamespaces; scoped-namespaces e2e case.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-26 15:48:38 +02:00
faizanahmad055 43032d3c38 Fix typo
Signed-off-by: faizanahmad055 <faizan.ahmad55@outlook.com>
2026-05-11 22:37:44 +02:00
faizanahmad055 2d1c05ef5e Revert e2e parallel
Signed-off-by: faizanahmad055 <faizan.ahmad55@outlook.com>
2026-05-11 22:24:34 +02:00
TheiLLeniumStudios 082b7cc4c4 chore: Cleanup a lot of code 2026-01-15 00:21:56 +01:00
TheiLLeniumStudios 4872982617 refactor: Move handle watch behavior to separate function 2026-01-14 23:35:29 +01:00
TheiLLeniumStudios c45b416458 feat: Switch to using watches instead of manual sleeps 2026-01-14 19:41:04 +01:00
TheiLLeniumStudios b35016ce1e test: A lot more cleanup and formatting for tests 2026-01-14 13:20:18 +01:00
TheiLLeniumStudios f0e6d3af58 feat: A lot of refactoring and CSI test cases 2026-01-10 13:42:10 +01:00
TheiLLeniumStudios fafd5460a2 feat: Initial e2e tests and migrate old ones into e2e 2026-01-08 11:06:45 +01:00