Commit Graph
34 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 68fb1d9211 Make GINKGO_PROCS 1
Signed-off-by: faizanahmad055 <faizan.ahmad55@outlook.com>
2026-05-12 13:17:56 +02:00
faizanahmad055 81d0fdd197 Make multi container tests serial
Signed-off-by: faizanahmad055 <faizan.ahmad55@outlook.com>
2026-05-12 11:15:04 +02:00
faizanahmad055 d91cb8e900 Change GINKGO_PROCS to 4
Signed-off-by: faizanahmad055 <faizan.ahmad55@outlook.com>
2026-05-12 10:42:50 +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
faizanahmad055 caebfd98f9 Add e2e parallel
Signed-off-by: faizanahmad055 <faizan.ahmad55@outlook.com>
2026-05-11 21:59:32 +02:00
faizanahmad055 96ac8d1daf Refactor code and fix leader election tests
Signed-off-by: faizanahmad055 <faizan.ahmad55@outlook.com>
2026-05-11 20:48:54 +02:00
faizanahmad055 b5c8705395 Refactor code
Signed-off-by: faizanahmad055 <faizan.ahmad55@outlook.com>
2026-05-11 16:18:53 +02:00
faizanahmad055 e8d79c61c8 Fix PR issues
Signed-off-by: faizanahmad055 <faizan.ahmad55@outlook.com>
2026-05-11 11:29:09 +02:00
faizanahmad055 84f2ca3248 Fix conflicts
Signed-off-by: faizanahmad055 <faizan.ahmad55@outlook.com>
2026-05-11 10:55:54 +02:00
Safwan 003fbbfa1f Bump go version to 1.26 2026-02-13 15:53:18 +05:00
TheiLLeniumStudios 737455303c fix: empty slices instead of nil return 2026-01-21 15:44:59 +01:00
TheiLLeniumStudios 6397ef15eb chore: Remove unused function 2026-01-15 00:42:38 +01:00
TheiLLeniumStudios 082b7cc4c4 chore: Cleanup a lot of code 2026-01-15 00:21:56 +01:00
TheiLLeniumStudios ad8ab639b5 chore: Fix formatting for entry based tests 2026-01-14 23:37:53 +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 b28f1abfe4 fix: Formatting and issue with creating vault secrets 2026-01-14 14:48:07 +01:00
TheiLLeniumStudios 4f254826e2 feat: Add missing tests for edge cases and all other workload types for pod annotations 2026-01-14 14:30:53 +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 46e7d74bd1 Merge master into feat/e2e-test 2026-01-09 16:33:50 +01:00
TheiLLeniumStudios 1be910749b chore: A lot of cleanup 2026-01-09 01:34:16 +01:00
TheiLLeniumStudios ad6013adbf fix: Treat missing metrics as info 2026-01-09 00:58:28 +01:00
TheiLLeniumStudios 2674f405ce fix: Issue with not parsing multiple scenario in args 2026-01-09 00:44:43 +01:00
TheiLLeniumStudios 2442eddd81 fix: Skip loading images when already done 2026-01-09 00:34:09 +01:00
TheiLLeniumStudios 76287e0420 refactor: Cleanup logic for reloader in loadtests 2026-01-08 23:36:02 +01:00
TheiLLeniumStudios 322c4bc130 feat: Use cobra for loadtest CLI commands 2026-01-08 23:26:41 +01:00
TheiLLeniumStudios 958c6c2be7 feat(ci): Separate action for loadtests 2026-01-08 22:52:07 +01:00
TheiLLeniumStudios 193f64c0ec fix: Missing reloader.go 2026-01-08 14:22:43 +01:00
TheiLLeniumStudios f7210204d4 fix: Safe parsing for duration 2026-01-08 11:41:44 +01:00
TheiLLeniumStudios fafd5460a2 feat: Initial e2e tests and migrate old ones into e2e 2026-01-08 11:06:45 +01:00
TheiLLeniumStudios 9a3edf13d2 feat: Load tests 2026-01-06 11:03:26 +01:00