Commit Graph
292 Commits
Author SHA1 Message Date
Safwan ddf16fbcc8 migrate recorder to new api 2026-06-15 18:37:28 +05:00
Safwan c9762a93fb removed handlers 2026-06-15 18:14:58 +05:00
Safwan 740f60f763 Merge branch 'v2' into feat/takeover-v2 2026-06-15 18:14:43 +05:00
Safwan 4f23d14f43 merge latest master in v2 2026-06-15 18:06:14 +05:00
Muhammad Safwan KarimandGitHub 2cbb7715de Merge pull request #1141 from stakater/takeover-e2e-tests
Takeover e2e tests
2026-06-15 12:02:55 +05:00
yvjessestephensandGitHub f12425e96f Merge branch 'stakater:master' into fix/configmaps-resources-to-ignore-mismatch 2026-06-12 08:30:59 -05:00
Jesse StephensandClaude Opus 4.8 8f94e3051e refactor: case-insensitive normalization for resources-to-ignore
Use strings.ToLower so any casing (configMaps, ConfigMaps, sEcrets)
normalizes to the canonical lowercase ResourceMap key, and simplify the
flag help text. Addresses PR review feedback.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-12 08:29:56 -05:00
faizanahmad055 6556d4dac5 Remove unused methods
Signed-off-by: faizanahmad055 <faizan.ahmad55@outlook.com>
2026-06-12 12:43:43 +02:00
Smyslov MaximandCursor b2b40da4cf feat: add --ignore-annotation flag to override reloader.stakater.com/ignore
Allow users to customise the annotation key used to mark ConfigMaps and
Secrets as ignored by Reloader, consistent with how every other annotation
key is already overridable via a dedicated CLI flag.

Changes:
- internal/pkg/util/util.go: register --ignore-annotation persistent flag
  backed by options.IgnoreResourceAnnotation
- deployments/kubernetes/chart/reloader/templates/deployment.yaml: pass
  --ignore-annotation when custom_annotations.ignore is set in Helm values
- deployments/kubernetes/chart/reloader/values.yaml: document the new
  custom_annotations.ignore key in the example comment
- README.md: add --ignore-annotation to the Annotation Key Overrides table
  and mention the flag alongside the Resource-Level Ignore Annotation section

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-21 11:13:31 +03:00
Jesse Stephens d527ae8d5a fix: align resources-to-ignore=configMaps with renamed ResourceMap key
PR #1061 renamed the configmap key in kube.ResourceMap from "configMaps"
(camelCase) to "configmaps" (lowercase) to fix controllers not being
able to mark themselves as initialized. However, two callers were not
updated to match the new canonical key:

1. The Helm chart's deployment template still emits
   `--resources-to-ignore=configMaps` (camelCase) when
   `reloader.ignoreConfigMaps: true` is set.
2. The validation in `GetIgnoredResourcesList` only accepts the legacy
   camelCase spelling.

Because `ignoredResourcesList.Contains(k)` uses case-sensitive string
equality, the lookup against the new lowercase ResourceMap key never
matches. The configmaps controller is created and starts watching
ConfigMaps cluster-wide, even though the chart's ClusterRole template
(also gated on `ignoreConfigMaps`) does not grant permission for it.

The resulting pod logs are full of:

  configmaps is forbidden: User "system:serviceaccount:reloader:reloader-reloader"
  cannot list resource "configmaps" in API group "" at the cluster scope

This change:

- Updates the chart deployment template to emit the canonical lowercase
  `configmaps` value.
- Normalizes the input in `GetIgnoredResourcesList`, accepting both
  `configMaps` (legacy, for backward compatibility with users who pass
  the flag directly) and `configmaps` (canonical), and emitting the
  canonical form to the caller.
- Updates the flag help text and adds tests covering both spellings.
2026-05-20 14:19:13 -05:00
faizanahmad055 68fb1d9211 Make GINKGO_PROCS 1
Signed-off-by: faizanahmad055 <faizan.ahmad55@outlook.com>
2026-05-12 13:17:56 +02:00
faizanahmad055 90f0768f56 Fix formatting
Signed-off-by: faizanahmad055 <faizan.ahmad55@outlook.com>
2026-05-11 22:36:46 +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 f776e2dfd0 fixed errors 2026-02-13 17:05:29 +05:00
TheiLLeniumStudios 737455303c fix: empty slices instead of nil return 2026-01-21 15:44:59 +01:00
TheiLLeniumStudios 883ce07c70 test: remove redundant comments and clean up test code 2026-01-14 12:35:48 +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 16ff7f6ac9 fix: Default reconcile metric result to error for panic safety 2026-01-09 15:27:19 +01:00
TheiLLeniumStudios 1be910749b chore: A lot of cleanup 2026-01-09 01:34:16 +01:00
TheiLLeniumStudios 1945a740d0 chore: Format files# 2026-01-09 01:22:24 +01:00
TheiLLeniumStudios b945e5e828 chore: Merge from master 2026-01-08 22:12:19 +01:00
TheiLLeniumStudios eb3bc2447e refactor(upgrade.go): simplify retryOnConflict to return matched status and error 2026-01-08 11:12:10 +01:00
TheiLLeniumStudios fafd5460a2 feat: Initial e2e tests and migrate old ones into e2e 2026-01-08 11:06:45 +01:00
TheiLLeniumStudios 5f7f3a57bb feat: golangci-lint config and fixes 2026-01-08 10:25:05 +01:00
TheiLLeniumStudios bd030fe795 fix: A bunch of issues surfaced up via e2e tests and remove old e2e ones 2026-01-07 17:32:44 +01:00
faizanahmad055 157cf0f2e4 Remove SHA1 changes
Signed-off-by: faizanahmad055 <faizan.ahmad55@outlook.com>
2026-01-07 12:13:04 +01:00
faizanahmad055 8b64c9b9cd Fix failing SHA test
Signed-off-by: faizanahmad055 <faizan.ahmad55@outlook.com>
2026-01-06 22:53:24 +01:00
faizanahmad055 e1db875efe Fix failing tests
Signed-off-by: faizanahmad055 <faizan.ahmad55@outlook.com>
2026-01-06 22:20:20 +01:00
TheiLLeniumStudios 9a3edf13d2 feat: Load tests 2026-01-06 11:03:26 +01:00
TheiLLeniumStudios 5548ce559a feat: Introduce a Generic ResourceReconciler and a generic BaseWorkload to de-duplicate a lot of code 2026-01-05 00:59:57 +01:00
faizanahmad055 4b90335362 Readme update and fix tests
Signed-off-by: faizanahmad055 <faizan.ahmad55@outlook.com>
2026-01-04 21:52:07 +01:00
faizanahmad055 7e9d571e1e Readme update and change SHA1 to SHA512
Signed-off-by: faizanahmad055 <faizan.ahmad55@outlook.com>
2026-01-04 20:10:52 +01:00
TheiLLeniumStudios c785067a44 feat: Use strategic merge to patch workloads and add metrics for load testing 2026-01-04 14:01:14 +01:00
faizanahmad055 0f1d02e975 Readme update and code refactor
Signed-off-by: faizanahmad055 <faizan.ahmad55@outlook.com>
2026-01-04 02:40:42 +01:00
faizanahmad055 c9cab4f6e0 Update chart for CSI driver
Signed-off-by: faizanahmad055 <faizan.ahmad55@outlook.com>
2026-01-03 19:32:43 +01:00
TheiLLeniumStudios da6f33c059 feat: Test cases for envvar strategy and more 2025-12-28 21:53:14 +01:00
TheiLLeniumStudios b55e597a2f fix: Issues with paused rollouts and test cases 2025-12-28 21:26:08 +01:00
TheiLLeniumStudios fa5f1858f1 feat: DeploymentConfig support 2025-12-28 16:43:28 +01:00
TheiLLeniumStudios 9f331cac4f refactor(reloader): replace CreateOrUpdate with Runnable for metadata publishing and update RBAC to include watch permission 2025-12-28 14:52:44 +01:00
TheiLLeniumStudios 8bce8e9b38 chore: Cleanup code 2025-12-28 14:29:45 +01:00
TheiLLeniumStudios 4db9e5974e fix: Linting issues 2025-12-28 11:38:25 +01:00
TheiLLeniumStudios 2f9633c3f1 feat: Use viper for config handling and flags 2025-12-28 11:31:27 +01:00
TheiLLeniumStudios 9a5fbf190d feat: Improve slack alerts 2025-12-28 11:31:04 +01:00
TheiLLeniumStudios 612006c091 feat: Upgrade all go packages 2025-12-28 09:02:51 +01:00
TheiLLeniumStudios cca7383daf fix: Linting issues 2025-12-28 08:59:01 +01:00