argo-cd/controller
Akram Ben Aissi cd4fc97c9d
fix: Use the cache for sharding (#15237)
* feat(sharding): use a cache

Signed-off-by: Alexandre Gaudreault <alexandre.gaudreault@logmein.com>

* cluster cmd

Signed-off-by: Alexandre Gaudreault <alexandre.gaudreault@logmein.com>

* - Assign shard 0 to in-cluster cluster and nil check updates
- Caching clusters while sharding: Fixing unit tests
- Update generated docs
- Debug e2e tests
- Default the shardNumber to the number of replicas if it is calculated to a higher value
- defered Unlock only when a lock is set
- Disabling temporarly other versions of k3s to check if e2e passes
- Do not fail if hostname format is not abc-n
- Fix unit test and skip some e2e
- Skip TestGitSubmoduleHTTPSSupport test
- Remove breaking defer c.lock.Unlock()
- Reverting testing all k3s version
- Default sharding fix
Signed-off-by: Akram Ben Aissi <akram.benaissi@gmail.com>

Signed-off-by: Akram Ben Aissi <akram.benaissi@gmail.com>

* fixes related to code review: renaming structure param, moving db initialisation

Signed-off-by: Akram Ben Aissi <akram.benaissi@gmail.com>

* Code review

Signed-off-by: Akram Ben Aissi <akram.benaissi@gmail.com>

* Set default shard to 0

Signed-off-by: Akram Ben Aissi <akram.benaissi@gmail.com>

* Set different default value for Sts and Deployment mode

Signed-off-by: Akram Ben Aissi <akram.benaissi@gmail.com>

* Expose ClusterShardingCache

Signed-off-by: Akram Ben Aissi <akram.benaissi@gmail.com>

* Removing use of argoDB.db for DistributionFunction

Signed-off-by: Akram Ben Aissi <akram.benaissi@gmail.com>

* Update generated documentation

Signed-off-by: Akram Ben Aissi <akram.benaissi@gmail.com>

* Fix comment about NoShardingDistributionFunction and NoShardingAlgorithm

Signed-off-by: Akram Ben Aissi <akram.benaissi@gmail.com>

---------

Signed-off-by: Alexandre Gaudreault <alexandre.gaudreault@logmein.com>
Signed-off-by: Akram Ben Aissi <akram.benaissi@gmail.com>
Co-authored-by: Alexandre Gaudreault <alexandre.gaudreault@logmein.com>
2024-01-11 01:32:11 -05:00
..
cache fix: Use the cache for sharding (#15237) 2024-01-11 01:32:11 -05:00
metrics feat: dynamic rebalancing of clusters across shards (#15036) 2023-09-22 19:49:09 +00:00
sharding fix: Use the cache for sharding (#15237) 2024-01-11 01:32:11 -05:00
testdata feat: new sync option to use ignore diff configs during sync (#8078) 2022-01-13 13:00:17 -08:00
appcontroller.go fix: Use the cache for sharding (#15237) 2024-01-11 01:32:11 -05:00
appcontroller_test.go fix: Use the cache for sharding (#15237) 2024-01-11 01:32:11 -05:00
clusterinfoupdater.go feat: add timeout for update cluster info (#14511) 2023-08-16 22:15:05 -04:00
clusterinfoupdater_test.go feat: add timeout for update cluster info (#14511) 2023-08-16 22:15:05 -04:00
health.go fix: produce better logs for health check errors (#12350) 2023-02-24 10:24:06 -05:00
health_test.go chore: replace github.com/ghodss/yaml with sigs.k8s.io/yaml (#13292) 2023-05-04 18:06:56 -04:00
hook.go feat: PostDelete hook support (#16595) 2023-12-18 08:40:23 -08:00
OWNERS docs: document Argo CD development process (#6546) 2021-07-01 08:55:07 -07:00
sort_delete.go feat: delete in reverse order of sync waves (#3959) 2020-07-21 09:52:59 +02:00
sort_delete_test.go feat: delete in reverse order of sync waves (#3959) 2020-07-21 09:52:59 +02:00
state.go feat: add initiated by in history and rollback view (#16654) 2023-12-22 16:50:33 +00:00
state_test.go feat: add initiated by in history and rollback view (#16654) 2023-12-22 16:50:33 +00:00
sync.go feat: add initiated by in history and rollback view (#16654) 2023-12-22 16:50:33 +00:00
sync_namespace.go fix: do not mutate live when managed namespace enabled (#11197) 2022-11-08 16:06:05 -05:00
sync_namespace_test.go fix: do not mutate live when managed namespace enabled (#11197) 2022-11-08 16:06:05 -05:00
sync_test.go feat: grace period for repo errors to prevent aggressive unknown sync state (#16085) 2023-11-02 11:51:16 -04:00