Commit Graph
42 Commits
Author SHA1 Message Date
Nikolaus Schuetz 4471a45591 Surface invalid-regex errors to the call site with workload context
Per review: instead of logging the skipped pattern inside ShouldReload
(which lacks workload identity), collect the compile errors on
ReloadCheckResult.Errors and log them at the upgrade call site, where the
resource name, type, and namespace are known. Add a test for the
multi-value case where one comma-separated pattern is malformed and a
valid one still matches.
2026-08-01 21:21:02 -07:00
Nikolaus Schuetz 54e6b1c44f fix: prevent panic on invalid regex in reload annotation
ShouldReload compiled each comma-separated value of a named reload
annotation (e.g. secret.reloader.stakater.com/reload) with
regexp.MustCompile, which panics on an invalid pattern. The value comes
straight from a user-set annotation on a watched workload, and the queue
worker has no recover(), so a single malformed annotation (e.g.
"app-config[") on any workload in any watched namespace crashes Reloader
and stops reloads cluster-wide.

Use regexp.Compile and, on error, log and skip that pattern instead of
panicking.
2026-07-22 00:51:47 -07: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 84f2ca3248 Fix conflicts
Signed-off-by: faizanahmad055 <faizan.ahmad55@outlook.com>
2026-05-11 10:55:54 +02:00
Safwan 4a95a813cd Add Edition variable in metadata 2026-01-12 23:02:26 +05:00
TheiLLeniumStudios f0e6d3af58 feat: A lot of refactoring and CSI test cases 2026-01-10 13:42:10 +01:00
TheiLLeniumStudios 1945a740d0 chore: Format files# 2026-01-09 01:22:24 +01:00
Safwanandfaizanahmad055 109971d8b7 prioritize named resource 2026-01-03 22:20:30 +01:00
Muhammad Safwan KarimandGitHub 779c3b0895 Merge branch 'master' into add-csi-support 2025-12-26 22:38:19 +05:00
Matthias Werning 27fb47ff52 Fix configmaps key in ResourceMap leading to controllers not being able to mark themselves as initialized 2025-12-10 09:10:52 +01:00
Safwan cdaed4a8af Merge branch 'master' into add-csi-support 2025-11-25 01:27:08 +05:00
Pradeep Lakshmi NarasimhaandFelix dd0807e951 fix: Controller not respecting ignore* flags 2025-08-29 12:24:02 +02:00
Muhammad Safwan KarimandGitHub 177d2756a8 Moved some functions to common package (#988)
* separate methods

* basic refactoring

* moved common code to util package to use it in gateway

* common check for argo rollouts

* made code compilable with latest changes on master

* Moved options to separate package and created CommandLineOptions instance that will be in sync with options values.

* reverted extra changes

* initialize CommandLineOptions with default options in module init

* wait for paused at annotation before checking deployment paused

* moved things around to fix things

* reverted unnecessary changes

* reverted rolling_upgrade changes

* reverted extra change

* additional checks in reloader

* refactor: ShouldReloadInternal method. It will be called by Reloader
ShouldReload has some additional resource/namespace filter checks which are not needed for Reloader

* added test cases

* moved config to sharable packae

* moved resource selector and label selctor methods

* fixed pipeline

* removed map.yaml

* removed vague comment
2025-08-15 15:51:47 +05:00
Muhammad Safwan KarimandGitHub 1e46d44c7c Added pprof flag (#980)
* added pprof flag

* updated chart

* fixed linting and spelling
2025-07-29 15:49:30 +05:00
Muhammad Safwan KarimandGitHub 49409dce54 Extracted some functions to public package to reuse them in gateway (#966)
* separate methods

* basic refactoring

* moved common code to util package to use it in gateway

* common check for argo rollouts

* made code compilable with latest changes on master

* Moved options to separate package and created CommandLineOptions instance that will be in sync with options values.

* reverted extra changes

* initialize CommandLineOptions with default options in module init

* wait for paused at annotation before checking deployment paused

* moved things around to fix things

* reverted unnecessary changes

* reverted rolling_upgrade changes

* reverted extra change
2025-07-29 11:50:02 +05:00
Safwan d9b36a56b5 Removed is dirty flag 2025-07-21 17:40:50 +05:00
Safwan dcf4b0d0f6 merged deployment pause related changes 2025-07-21 15:14:30 +05:00
Safwan 1e1f094516 resolved comments and stuff 2025-07-18 19:27:26 +05:00
Safwan 19918e6fa8 fix error 2025-07-17 13:05:40 +05:00
Safwan 95cea97d34 make parsetime exportable 2025-07-17 13:04:47 +05:00
Safwan d22a0f25de changed types to bool where needed 2025-07-17 13:03:42 +05:00
Safwan 2d2c35fcf4 discard error 2025-07-16 20:09:19 +05:00
Safwan cf600f7761 type safety where applicable in meta info 2025-07-16 19:37:02 +05:00
Safwan 01f62cf823 renamed struct fields 2025-07-16 18:29:26 +05:00
Safwan f69773c588 refactoring 2025-07-15 20:08:23 +05:00
Zanis 717291f173 Added check to see if CSI CRDs are installed before running controller 2025-02-05 22:01:19 +00:00
Zanis 3c39406ca9 Added capability to use OnChangeAnnotation and TypeAutoAnnotation 2025-02-05 21:51:11 +00:00
Zanis f6887b4d8a Added support for CSI secret provider
Signed-off-by: Zanis <22601571+ZanisO@users.noreply.github.com>
2025-02-05 21:51:10 +00:00
ctrought e39a8f6bcf refactor: use Namespace controller for namespaceSelector
Signed-off-by: Craig Trought <k8s@trought.ca>
2023-03-31 19:08:10 -04:00
tete17 71fdb53c2e Update ArgoCD Rollouts to 0.10.2 to fix a compatibility issue and update necessary k8s machinery 2021-05-31 15:35:51 +02:00
tete17 614865a8d7 Add support for ArgoCD Rollout CRD 2021-02-23 18:24:39 +01:00
Liu Ming eaa3db48f5 Polish code
Signed-off-by: Liu Ming <hit_oak_tree@126.com>
2020-07-29 10:25:55 +08:00
waseem 878bc5c442 Refactor Openshift detection 2019-07-05 12:23:14 +02:00
waseem ff5f28ba00 Add comments where needed 2019-07-04 11:00:52 +02:00
waseem df777332a9 Lint go 2019-07-04 10:56:17 +02:00
waseem 9f3c8379a6 Add IsOpenshift flag 2019-07-04 10:32:17 +02:00
waseem 9cd5b87dab Add openshift apps client 2019-07-04 09:58:39 +02:00
faizanahmad055 ccb1fcd1b5 Implement golangci comments 2018-07-13 16:46:35 +05:00
faizanahmad055 82bd2b55c5 Implement PR-1 review comments 2018-07-13 14:55:02 +05:00
faizanahmad055 848745f40a Implement PR-1 review comments 2018-07-11 20:20:48 +05:00
faizanahmad055 c05ef239b2 Update rbac in reloader 2018-07-10 15:16:52 +05:00
faizanahmad055 5920890fa3 Added initial implementation to detect changes 2018-07-06 20:26:29 +05:00