Commit Graph

6540 Commits

Author SHA1 Message Date
Joe Nathan Abellard 22ddd9de09 Propose support for custom CA cert
Signed-off-by: Joe Nathan Abellard <contact@jabellard.com>
2024-11-16 06:01:08 -07:00
karmada-bot 35a82371b2
Merge pull request #5821 from XiShanYongYe-Chang/update-GracefulEvictCluster-to-set-purgemode
Support PurgeMode setting in evection tasks
2024-11-16 16:27:53 +08:00
RainbowMango d0497d41ce Update application failover purge mode comments
Signed-off-by: RainbowMango <qdurenhongcai@gmail.com>
2024-11-16 15:32:28 +08:00
Anuj Agrawal 310e4f989b Added unit tests for status and cronfederatedhpa helper utilities
Signed-off-by: Anuj Agrawal <anujagrawal380@gmail.com>

Added unit tests for status and cronfederatedhpa helper utilities

Signed-off-by: Anuj Agrawal <anujagrawal380@gmail.com>

Added unit tests for status and cronfederatedhpa helper utilities

Signed-off-by: Anuj Agrawal <anujagrawal380@gmail.com>

Added unit tests for status and cronfederatedhpa helper utilities

Signed-off-by: Anuj Agrawal <anujagrawal380@gmail.com>
2024-11-16 12:37:10 +05:30
Anuj Agrawal 1cd78d6258 Added unit tests for general estimator package
Signed-off-by: Anuj Agrawal <anujagrawal380@gmail.com>
2024-11-15 21:54:20 +05:30
karmada-bot 3acc14c0f0
Merge pull request #5810 from mohamedawnallah/unitTestKarmadaSearchController
pkg/search: unit test controller
2024-11-15 17:37:53 +08:00
karmada-bot e7fd4eb847
Merge pull request #5493 from anujagrawal699/addedTests-pkg/controllers/deploymentreplicassyncer
Added tests for controllers/deploymentreplicassyncer
2024-11-15 14:38:53 +08:00
Anuj Agrawal 455cb3928b Added tests for controllers/deploymentreplicassyncer
Signed-off-by: Anuj Agrawal <anujagrawal380@gmail.com>

Added tests for controllers/deploymentreplicassyncer

Signed-off-by: Anuj Agrawal <anujagrawal380@gmail.com>

Added tests for controllers/deploymentreplicassyncer

Signed-off-by: Anuj Agrawal <anujagrawal380@gmail.com>

Added tests for controllers/deploymentreplicassyncer

Signed-off-by: Anuj Agrawal <anujagrawal380@gmail.com>

Added tests for controllers/deploymentreplicassyncer

Signed-off-by: Anuj Agrawal <anujagrawal380@gmail.com>

Added tests for controllers/deploymentreplicassyncer

Signed-off-by: Anuj Agrawal <anujagrawal380@gmail.com>
2024-11-15 11:04:53 +05:30
changzhen db7982e9a9 update GracefulEvictCluster() to set PurgeMode during eviction process
Signed-off-by: changzhen <changzhen5@huawei.com>
2024-11-15 12:02:17 +08:00
RainbowMango 82aa1e77f8 Bump Golang version to v1.22.9
Signed-off-by: RainbowMango <qdurenhongcai@gmail.com>
2024-11-15 10:15:58 +08:00
karmada-bot 35b7e8f120
Merge pull request #5816 from mszacillo/purgemode-api
feat(stateful failover support) Introduce PurgeMode to GracefulEvictionTask in ResourceBinding
2024-11-15 09:50:52 +08:00
karmada-bot 0d7d2f92d2
Merge pull request #5807 from RainbowMango/pr_bump_k8s_v1312
Bump Kubernetes dependencies from v1.30.2 to v1.31.2
2024-11-15 09:20:52 +08:00
Anuj Agrawal efff5bca9d Added unit tests for safe lua lifted libraries
Signed-off-by: Anuj Agrawal <anujagrawal380@gmail.com>
2024-11-14 22:49:29 +05:30
mszacillo 9b92cc4d51 Introduce PurgeMode to GracefulEvictionTask in ResourceBinding
Signed-off-by: mszacillo <mszacillo@bloomberg.net>
2024-11-14 10:21:56 -05:00
karmada-bot e08cea1e60
Merge pull request #5673 from zhzhuang-zju/trivy
image-scanning: fix ratelimiting error when downloading vulnerability db from ghcr.io
2024-11-14 15:39:52 +08:00
zhzhuang-zju d2c29f086d image-scanning: fix ratelimiting error when downloading vulnerability db from ghcr.io
Signed-off-by: zhzhuang-zju <m17799853869@163.com>
2024-11-14 14:45:21 +08:00
karmada-bot 6f138cfc8d
Merge pull request #5801 from SataQiu/fieldSelector
karmada-search: support field selector for corev1 resources
2024-11-14 09:44:51 +08:00
SataQiu c9e6ce5387 karmada-search: support field selector for corev1 resources
Signed-off-by: SataQiu <shidaqiu2018@gmail.com>
2024-11-13 21:48:43 +08:00
Mohamed Awnallah dc2eea8710 pkg/search: unit test controller
In this commit, we unit test karmada search controller
on creating new controller and handling the following events
watched by the shared informer: `addCluster`, `updateCluster`,
`deleteCluster`, `addResourceRegistry`, `updateResourceRegistry`,
and `deleteResourceRegistry` making sure those handled and cached
correctly to the indexer.

Signed-off-by: Mohamed Awnallah <mohamedmohey2352@gmail.com>
2024-11-13 01:33:34 +02:00
RainbowMango fc1df776dc Adopt controller-runtime braking change: TypedReconciler
Reference PR2799
Adopt Kubernetes#125483 introduced ReadinessCheck
Adopt Kubernetes breaking change: EffectiveVersion
Reference PR: 122891

Signed-off-by: RainbowMango <qdurenhongcai@gmail.com>
2024-11-12 17:52:46 +08:00
RainbowMango c2de90bb5e Bump Kubernetes dependencies to v1.31.2
Bump controller-runtime to v0.19.1

Signed-off-by: RainbowMango <qdurenhongcai@gmail.com>
2024-11-12 17:52:36 +08:00
karmada-bot 2f8047673e
Merge pull request #5808 from RainbowMango/pr_bump_controler-gen_0165
Bump controller-gen to v0.16.5
2024-11-12 17:35:50 +08:00
chang.qiangqiang 066eec0b7d feat(dependenciesdistributor): introduced flag for dependencies-distributor
Signed-off-by: chang.qiangqiang <chang.qiangqiang@immomo.com>
2024-11-12 16:31:21 +08:00
karmada-bot 046d1ba107
Merge pull request #5798 from anujagrawal699/addedTests-pkg/util/helper/workstatus.go
Added unit tests for pkg/util/helper/workstatus.go
2024-11-12 11:53:50 +08:00
RainbowMango 325bab391b Bump controller-gen to v0.16.5
Signed-off-by: RainbowMango <qdurenhongcai@gmail.com>
2024-11-12 10:32:09 +08:00
Anuj Agrawal ed50e02d4e Added unit tests for pkg/util/helper/workstatus.go
Signed-off-by: Anuj Agrawal <anujagrawal380@gmail.com>

Added unit tests for pkg/util/helper/workstatus.go

Signed-off-by: Anuj Agrawal <anujagrawal380@gmail.com>
2024-11-11 20:30:50 +05:30
karmada-bot 90fe21e58f
Merge pull request #5804 from XiShanYongYe-Chang/cancel-concurrent-test
[UT] cancel concurrent test for SetupWithManager
2024-11-11 22:00:50 +08:00
changzhen 41ba3c769d cancel concurrent test for SetupWithManager
Signed-off-by: changzhen <changzhen5@huawei.com>
2024-11-11 19:57:50 +08:00
karmada-bot ed3f48cd32
Merge pull request #5799 from chaosi-zju/ctrl-name
Ensure controller names are unique when emitting metrics
2024-11-11 15:37:49 +08:00
karmada-bot c69408879d
Merge pull request #5786 from mohamedawnallah/unitTestKarmadaInitCheck
pkg/karmadactl/cmdinit/karmada: unit test check
2024-11-11 14:56:49 +08:00
dependabot[bot] 10aac11530
build(deps): bump rajatjindal/krew-release-bot from 0.0.46 to 0.0.47
Bumps [rajatjindal/krew-release-bot](https://github.com/rajatjindal/krew-release-bot) from 0.0.46 to 0.0.47.
- [Release notes](https://github.com/rajatjindal/krew-release-bot/releases)
- [Changelog](https://github.com/rajatjindal/krew-release-bot/blob/main/.goreleaser.yml)
- [Commits](https://github.com/rajatjindal/krew-release-bot/compare/v0.0.46...v0.0.47)

---
updated-dependencies:
- dependency-name: rajatjindal/krew-release-bot
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-11-11 05:52:42 +00:00
chaosi-zju b605d9d637 ensure controller names are unique when emitting metrics
Signed-off-by: chaosi-zju <chaosi@zju.edu.cn>
2024-11-11 12:05:12 +08:00
karmada-bot d8b58c4f74
Merge pull request #5770 from anujagrawal699/addedTests-pkg/util/lifted/scheduler/cache/snapshot_test.go
Added unit tests for the scheduler cache snapshot functionality
2024-11-11 11:35:49 +08:00
karmada-bot b5c6660f53
Merge pull request #5795 from mohamedawnallah/unitTestKarmadaSearchAPIServer
pkg/search: unit test karmada search APIServer
2024-11-11 10:40:49 +08:00
karmada-bot 41582f87d5
Merge pull request #5792 from anujagrawal699/addedTests-pkg/util/lifted/scheduler/cache/cache.go
Added unit tests for scheduler's cache package
2024-11-08 17:57:47 +08:00
Anuj Agrawal 085b433f49 Added unit tests for scheduler's cache package
Signed-off-by: Anuj Agrawal <anujagrawal380@gmail.com>

Added unit tests for scheduler's cache package

Signed-off-by: Anuj Agrawal <anujagrawal380@gmail.com>
2024-11-07 09:43:57 +05:30
karmada-bot 0cc294f998
Merge pull request #5759 from mohamedawnallah/unitTestTLSBootstrapAgent
pkg/karmadactl/cmdinit: unit test bootstraptoken
2024-11-07 09:56:46 +08:00
karmada-bot b3d3bcde66
Merge pull request #5787 from yanfeng1992/descheduler-leader
Introduced descheduler leaderElection options including: `--leader-elect-lease-duration`, `--leader-elect-renew-deadline`, `--leader-elect-retry-period`,
2024-11-06 17:43:45 +08:00
karmada-bot f846d78735
Merge pull request #5789 from CharlesQQ/set-log-level
fix(status): set log to level 5
2024-11-06 17:40:45 +08:00
chang.qiangqiang 2daa150fd6 fix(status): set log to level 5
Signed-off-by: chang.qiangqiang <chang.qiangqiang@immomo.com>
2024-11-06 16:28:42 +08:00
karmada-bot 8a825112b1
Merge pull request #5776 from mohamedawnallah/unitTestKarmadaAddonSearch
pkg/karmadactl/addons: unit test karmada search
2024-11-06 15:39:44 +08:00
Mohamed Awnallah c059c68f9b pkg/search: unit test karmada search APIServer
In this commit, we unit test karmada search APIServer
on creating REST storage and installing the API group.

Signed-off-by: Mohamed Awnallah <mohamedmohey2352@gmail.com>
2024-11-06 01:15:31 +02:00
Mohamed Awnallah 0a56741bb6 pkg/karmadactl/cmdinit: unit test bootstraptoken
In this commit, we unit test bootstraptoken agent on tlsbootstrap
functionality by testing `AllowBootstrapTokensToPostCSRs`,
`AutoApproveKarmadaAgentBootstrapTokens`, and `AutoApproveAgentCertificateRotation`
making sure they are working as expected.

Signed-off-by: Mohamed Awnallah <mohamedmohey2352@gmail.com>
2024-11-05 16:51:08 +02:00
Mohamed Awnallah 91c4f92702 pkg/karmadactl/addons: unit test karmada search
In this commit, we unit test karmada search on status operation.

Signed-off-by: Mohamed Awnallah <mohamedmohey2352@gmail.com>
2024-11-05 15:53:25 +02:00
karmada-bot a935aa1a76
Merge pull request #5610 from yanfeng1992/fixbug-toomany-conn
cluster proxy transport disable keepalive
2024-11-05 16:38:44 +08:00
huangyanfeng 5dd6abafb9 deScheduler add LeaderElection config
Signed-off-by: huangyanfeng <huangyanfeng1992@gmail.com>
2024-11-05 14:49:55 +08:00
karmada-bot ac589d6921
Merge pull request #5765 from mohamedawnallah/unitTestDeschedulerAddon
pkg/karmadactl/addons: unit test descheduler
2024-11-05 09:41:43 +08:00
Mohamed Awnallah c636d16948 pkg/karmadactl: unit test check in cmdinit
In this commit, we unit test `WaitAPIServiceReady` check function
that is utilized across addons and during init operations on waiting
for a non-existent aaAPIService, not-ready aaAPIService, and finally
where aaAPIService becomes ready before the timeout.

Signed-off-by: Mohamed Awnallah <mohamedmohey2352@gmail.com>
2024-11-04 21:46:07 +02:00
karmada-bot 8c7607e741
Merge pull request #5778 from mohamedawnallah/unitTestAggregatedAPIServer
pkg: unit test aggregatedAPIServer
2024-11-04 18:16:43 +08:00
karmada-bot e90ff63b6f
Merge pull request #5780 from ctripcloud/crb-status-ut
fix crb_status_controller ut is referencing namespaced objects
2024-11-04 14:23:43 +08:00