Commit Graph

365 Commits

Author SHA1 Message Date
Mohamed Awnallah 2a55c98b91 test/e2e: unify access to cluster members
Signed-off-by: Mohamed Awnallah <mohamedmohey2352@gmail.com>
2024-07-19 03:56:15 +00:00
Mohamed Awnallah ad1e76bac2
test/e2e/karmadactl_test.go: test describe command
In this commit, we test `karmadactl describe` command
on existing resource, non-existing resource, non-existing
namespace, and invalid resource type.

Signed-off-by: Mohamed Awnallah <mohamedmohey2352@gmail.com>
2024-07-17 10:59:02 +03:00
Mohamed Awnallah d2a47dde53
test/e2e/karmadactl_test.go: test get command
In this commit, we test `karmadactl get` command
on existing resource, non-existing resource, and
invalid resource type.

Signed-off-by: Mohamed Awnallah <mohamedmohey2352@gmail.com>
2024-07-17 09:44:31 +03:00
Mohamed Awnallah 1fc977e38c
test/e2e/karmadactl_test.go: test version command
In this commit, we test `karmadactl version` command to
make sure it return valid information and return error
when invalid flag is provided.

Signed-off-by: Mohamed Awnallah <mohamedmohey2352@gmail.com>
2024-07-17 06:40:45 +03:00
Mohamed Awnallah 09ec78933d test/e2e/karmadactl_test.go: test logs command
In this commit, we test `karmadactl logs` command
on existing cluster, existing pod, non-existing pod,
non-existing cluster, and invalid input.

Signed-off-by: Mohamed Awnallah <mohamedmohey2352@gmail.com>
2024-07-15 10:32:42 +00:00
whitewindmills 2450bd6041 Correct licenses format
Signed-off-by: whitewindmills <jayfantasyhjh@gmail.com>
2024-07-04 10:35:16 +08:00
changzhen fecd9a74a9 fix update cluster conflict error in the remedy e2e test
Signed-off-by: changzhen <changzhen5@huawei.com>
2024-06-27 19:48:01 +08:00
karmada-bot 86d1ac7aaa
Merge pull request #5033 from Affan-7/e2e-test
Add combined case 3 in the lazy activation policy tests
2024-06-14 11:51:41 +08:00
Mohammed Affan 8f1b112e89 Add combined case 3 in the lazy activation policy tests
Signed-off-by: Mohammed Affan <mohammed.affan.727@gmail.com>
2024-06-13 09:01:27 +05:30
whitewindmills 58c15c8ed9 fix code inspection errors
Signed-off-by: whitewindmills <jayfantasyhjh@gmail.com>
2024-06-12 17:55:59 +08:00
changzhen d5a317a165 fix-remedy-e2e-errors
Signed-off-by: changzhen <changzhen5@huawei.com>
2024-06-12 15:22:01 +08:00
changzhen 87a1938643 add e2e for remedy
Signed-off-by: changzhen <changzhen5@huawei.com>
2024-05-31 16:56:57 +08:00
changzhen 26abce8b6a add e2e for remedy
Signed-off-by: changzhen <changzhen5@huawei.com>
2024-05-31 15:46:33 +08:00
Lan Liang ed0f26c328 cleanup pointer, use ptr.Toto obtain a pointer, ptr.Deref to dereference a pointer.
The new k8s.io/utils/ptr package provides generic wrapper functions,
which can be used instead of type-specific pointer wrapper functions.
This replaces the latter with the former, and migrates other uses of
the deprecated pointer package to ptr in affacted files.

See kubernetes/utils#283 for details.

Signed-off-by: Lan Liang <gcslyp@gmail.com>
2024-05-28 05:32:33 +00:00
chaosi-zju a8b4050ee7 support auto delete WorkloadRebalancer when time up.
Signed-off-by: chaosi-zju <chaosi@zju.edu.cn>
2024-05-27 09:56:06 +08:00
chaosi-zju 761bbf031d add more e2e for WorkloadRebalancer
Signed-off-by: chaosi-zju <chaosi@zju.edu.cn>
2024-05-22 16:52:11 +08:00
karmada-bot e4a4a474f4
Merge pull request #3906 from Affan-7/cleanup-wait.poll
Migrate deprecated wait.Poll function
2024-05-22 15:52:18 +08:00
Lan Liang 5a4539d404 migrate wait.PollImmediate to wait.PollUntilContextTimeout.
Signed-off-by: Lan Liang <gcslyp@gmail.com>
2024-05-22 05:51:49 +00:00
Mohammed Affan 6a07cca040 Migrate deprecated wait.poll
Signed-off-by: Mohammed Affan <mohammed.affan.727@gmail.com>
2024-05-22 11:19:51 +08:00
chaosi-zju 57951d5bd6 fix e2e unstable failure caused by taint cluster
Signed-off-by: chaosi-zju <chaosi@zju.edu.cn>
2024-05-20 17:23:29 +08:00
chaosi-zju 9211d27973 add e2e for WorkloadRebalancer
Signed-off-by: chaosi-zju <chaosi@zju.edu.cn>
2024-05-16 16:18:30 +08:00
karmada-bot 6cfed59332
Merge pull request #4930 from zhzhuang-zju/golangciwith1.58.0
Bump golangci-lint to v1.58.0
2024-05-15 17:20:19 +08:00
chaosi-zju b3ccd3b565 add e2e for FederatedHPA and metrics-adapter.
Signed-off-by: chaosi-zju <chaosi@zju.edu.cn>
2024-05-13 09:48:31 +08:00
zhzhuang-zju 309c67701b bump golangci to v1.58.0
Signed-off-by: zhzhuang-zju <m17799853869@163.com>
2024-05-13 09:32:13 +08:00
RainbowMango 8cf31bfc37 Adopt Kubernetes #121390: remove etcd page
Adopt Kubernetes #118653, introduce VolumeResourceRequirements
Remove APIPriorityAndFairness feature gates from
karmada-aggregated-apiserver.

Signed-off-by: RainbowMango <qdurenhongcai@gmail.com>

Signed-off-by: RainbowMango <qdurenhongcai@gmail.com>
2024-05-06 11:36:54 +08:00
zhzhuang-zju 48425663cc e2e: Remove annotaions when pp/cpp is deleted
Signed-off-by: zhzhuang-zju <m17799853869@163.com>
2024-04-28 15:15:49 +08:00
whitewindmills 59b8835bda Deprecate name/namespace labels of pp/cpp
Co-authored-by: changzhen <changzhen5@huawei.com>
Signed-off-by: whitewindmills <jayfantasyhjh@gmail.com>
2024-04-18 14:21:02 +08:00
zhzhuang-zju 138b47274b update lazy-activation-preference.md and lazy_activation_policy_test.go
Signed-off-by: zhzhuang-zju <m17799853869@163.com>
2024-04-17 17:35:42 +08:00
hulizhe e62c659b00 add e2e test for lazy propagation policy
Signed-off-by: hulizhe <pompeii.hu@gmail.com>
2024-04-16 22:03:13 +08:00
chaosi-zju f99c0f6df0 add e2e test for lazy propagation policy
Signed-off-by: chaosi-zju <chaosi@zju.edu.cn>
2024-04-08 19:49:04 +08:00
Jay179-sudo deaf341f81 Corrected poll timeout example
Signed-off-by: Jay179-sudo <jayprasad2002@gmail.com>
2024-03-30 17:51:14 +05:30
chaosi-zju 8b9e1e22fb add e2e test for deployment replicas syncer
Signed-off-by: chaosi-zju <chaosi@zju.edu.cn>
(cherry picked from commit a21848da13)
2024-03-28 10:27:25 +08:00
karmada-bot 0a88f332c8
Merge pull request #4622 from Affan-7/lazy-activation-e2e
Add e2e test for lazy propogation policy: Policy created before resource
2024-03-22 15:44:51 +08:00
Mohammed Affan 19e988fa68 Add e2e test for lazy propogation policy: Policy created before resource
Signed-off-by: Mohammed Affan <mohammed.affan.727@gmail.com>
2024-03-20 21:36:23 +05:30
chaosi-zju 350601f2a7 Revert "add e2e test for deployment replicas syncer"
This reverts commit a21848da13.

Signed-off-by: chaosi-zju <chaosi@zju.edu.cn>
2024-03-20 09:56:17 +08:00
chaosi-zju a21848da13 add e2e test for deployment replicas syncer
Signed-off-by: chaosi-zju <chaosi@zju.edu.cn>
2024-03-17 19:27:31 +08:00
chaosi-zju 8f5cc4995c sync deployment replicas when it is controlled by hpa
Signed-off-by: chaosi-zju <chaosi@zju.edu.cn>
2024-03-14 20:39:22 +08:00
karmada-bot f03b5e9803
Merge pull request #4576 from zhzhuang-zju/pp
e2e: reduce unnecessary repetitive processes in propagationpolicy_test.go
2024-02-06 17:33:56 +08:00
zhzhuang-zju afe58c71a4 e2e: reduce unnecessary repetitive processes in propagationpolicy_test.go
Signed-off-by: zhzhuang-zju <m17799853869@163.com>
2024-02-06 15:19:33 +08:00
jwcesign cebb1eac03 feat: add manager label to eps work to avoid the conflicts between mcs/serviceexport
Signed-off-by: jwcesign <jiangwei115@huawei.com>
2024-01-29 20:22:36 +08:00
karmada-bot 697170b904
Merge pull request #4539 from zhzhuang-zju/label
cleanup: remove label when pp or cpp is deleted
2024-01-17 10:14:39 +08:00
karmada-bot 413a15aca3
Merge pull request #4536 from whitewindmills/preemption_e2e
Add preemption E2E test
2024-01-15 20:47:44 +08:00
karmada-bot be5b5a8553
Merge pull request #4521 from Vacant2333/add-e2e-coverage-docs
docs: Add e2e coverage detail(last part)
2024-01-13 17:06:35 +08:00
zhzhuang-zju a66032fbbd update e2e coverage_docs
Signed-off-by: zhzhuang-zju <m17799853869@163.com>
2024-01-13 10:18:09 +08:00
Vacant 5110ce08bd add e2e coverage detail
Signed-off-by: Vacant <vacant@MasterNode.local>
Signed-off-by: Vacant <vacant@192.168.0.107>
2024-01-12 20:36:27 +08:00
zhzhuang-zju 189a91bbf9 e2e: add a e2e case to test the scenario where pp and cpp are deleted
Signed-off-by: zhzhuang-zju <m17799853869@163.com>
2024-01-12 16:56:47 +08:00
whitewindmills a1a980b54a Add preemption E2E test
Signed-off-by: whitewindmills <jayfantasyhjh@gmail.com>
2024-01-12 11:13:51 +08:00
jwcesign 38b2cae7e1 cleanup: enable revive(exported rule) checking
Signed-off-by: jwcesign <jwcesign@gmail.com>
2024-01-09 09:41:47 +08:00
chaosi-zju 3532df46a2 cleanup: enable revive(receiver-naming) checking
Signed-off-by: chaosi-zju <chaosi@zju.edu.cn>
2024-01-04 14:36:49 +08:00
Lan Liang 59cd00d942 Cleanup: enable lint of revive(superfluous-else)
Signed-off-by: Lan Liang <gcslyp@gmail.com>
2024-01-02 08:35:42 +00:00
karmada-bot 303f2cd24b
Merge pull request #4470 from zhzhuang-zju/failover
e2e: check whether the deployment disappears in the recovered clusters
2023-12-26 11:18:21 +08:00
changzhen f5537cca6c nominate e2e code owners
Signed-off-by: changzhen <changzhen5@huawei.com>
2023-12-25 16:36:12 +08:00
karmada-bot 2a2db3fd9b
Merge pull request #4436 from Vacant2333/add-e2e-coverage-detail
docs: add e2e coverage detail
2023-12-25 16:19:20 +08:00
zhzhuang-zju 82b7009ef4 e2e: check whether the deployment disappears in the disabledClusters
Signed-off-by: zhzhuang-zju <m17799853869@163.com>
2023-12-25 11:22:05 +08:00
Vacant2333 60b2e4af22 add e2e coverage detail
Signed-off-by: Vacant <vacant@MasterNode.local>
2023-12-23 18:07:31 +08:00
Zhizhen He 25a62c6c57
fix typo
Signed-off-by: Zhizhen He <hezhizhen.yi@gmail.com>
2023-12-17 16:12:03 +08:00
jwcesign e77fe55851 feat: fix conflicts with pp
Signed-off-by: jwcesign <jwcesign@gmail.com>
2023-12-14 19:46:46 +08:00
karmada-bot 652c25436d
Merge pull request #4252 from zhzhuang-zju/e2e-top-pod
e2e: add e2e test for command karmadactl top pod
2023-12-13 09:22:10 +08:00
zhzhuang-zju 4fa7d48502 e2e: add e2e test for command karmadactl top pod
Signed-off-by: zhzhuang-zju <m17799853869@163.com>
2023-12-12 15:43:09 +08:00
karmada-bot d9f47afd4a
Merge pull request #4363 from jwcesign/jw-1
e2e: Fix the occasional failure of mcs e2e
2023-12-05 14:34:04 +08:00
jwcesign 0beb460387 e2e: Fix the occasional failure of mcs e2e
Signed-off-by: jwcesign <jwcesign@gmail.com>
2023-12-04 11:27:43 +08:00
changzhen 78265a6b8d delete the unused integration package in the test package
Signed-off-by: changzhen <changzhen5@huawei.com>
2023-12-02 19:32:23 +08:00
karmada-bot d43f22fb29
Merge pull request #4324 from Vacant2333/Add-e2e-coverage-analysis
Add e2e coverage analysis docs
2023-12-02 16:50:01 +08:00
karmada-bot 24d55736cd
Merge pull request #4354 from jwcesign/cleanup-mcs-e2e
cleanup: cleanup e2e of mcs
2023-12-02 16:44:00 +08:00
jwcesign 35d7ddd77f cleanup: cleanup e2e of mcs
Signed-off-by: jwcesign <jwcesign@gmail.com>
2023-12-02 15:14:14 +08:00
Vacant2333 d3a87c3c9c add e2e coverage analysis
Signed-off-by: Vacant2333 <vacant2333@gmail.com>
2023-12-02 13:19:29 +08:00
jwcesign 2e26ac7fbe e2e: make FederatedResourceQuota e2e as serial to avoid affecting each other
Signed-off-by: jwcesign <jwcesign@gmail.com>
2023-12-01 16:44:48 +08:00
jwcesign 471f8eb8f0 cleanup: change MultiClusterService corresponding label
Signed-off-by: jwcesign <jwcesign@gmail.com>
2023-11-30 23:26:33 +08:00
jwcesign fb5993d141 e2e: add e2e for mcs with native dns resolving
Signed-off-by: jwcesign <jwcesign@gmail.com>
2023-11-30 19:13:11 +08:00
zhy76 adef1e5974 feat: add license and verify license for code file
Signed-off-by: zhy76 <958474674@qq.com>
2023-11-16 11:11:21 +08:00
jwcesign aad72aecd2 e2e: adjust all karmadactl e2e to use real karmadactl command
Signed-off-by: jwcesign <jwcesign@gmail.com>
2023-11-15 11:08:27 +08:00
jwcesign d1ce33f9e8 e2e: adjust karmadactl e2e to use real command
Signed-off-by: jwcesign <jwcesign@gmail.com>
2023-11-14 10:28:50 +08:00
jwcesign 5e90907819 fix: fix exec failure when tls enabled
Signed-off-by: jwcesign <jwcesign@gmail.com>
2023-11-09 10:39:01 +08:00
karmada-bot bea718a0c3
Merge pull request #4136 from jwcesign/sync-show-v1
e2e: add test case for hpa replicas syncer
2023-10-31 20:34:35 +08:00
jwcesign d1f8b10acb e2e: add test case for hpa replicas syncer
Signed-off-by: jwcesign <jwcesign@gmail.com>
2023-10-31 15:32:07 +08:00
zhangdiandian 4baaf12887 fix spell errors in test and docs
Signed-off-by: zhangdiandian <1635468471@qq.com>
2023-10-31 03:38:07 +00:00
Vacant2333 628b0d4cb2 add resource deletion protection e2e test
Signed-off-by: Vacant2333 <vacant2333@gmail.com>
2023-10-28 15:52:32 +08:00
changzhen 734cf3ab8f fix depndencies lua scrpit bug
Signed-off-by: changzhen <changzhen5@huawei.com>
2023-09-05 17:36:24 +08:00
lxtywypc 67de65d892 Revert "Merge pull request #3808 from ctripcloud/refactor-execution-workstatus"
This reverts commit 90ccbcdfce, reversing
changes made to 24bb582950.

Signed-off-by: lxtywypc <lxtywypc@gmail.com>
2023-08-31 14:23:58 +08:00
jwcesign 2c48bd7f99 cleanup: add uid in resource and owner information in annotations
Signed-off-by: jwcesign <jwcesign@gmail.com>
2023-08-26 17:02:13 +08:00
karmada-bot 90ccbcdfce
Merge pull request #3808 from ctripcloud/refactor-execution-workstatus
only update object in member cluster by execution controller
2023-08-21 10:06:00 +08:00
lxtywypc 89e3673fbb only update object in member cluster by execution controller
Signed-off-by: lxtywypc <lxtywypc@gmail.com>
2023-08-16 16:36:22 +08:00
Vacant2333 c1d82ba218 add e2e coverage analisis
Signed-off-by: Vacant2333 <rentian.zhou@daocloud.io>
2023-08-11 10:47:33 +08:00
yike21 14c0795ed1 test: add e2e test to cover PropagationPolicy
Signed-off-by: yike21 <yike21@qq.com>
2023-08-09 08:58:05 +08:00
karmada-bot 086f530384
Merge pull request #2736 from Poor12/refactor-taint
Refactor the func and event of taint cluster
2023-08-03 10:51:50 +08:00
Poor12 b2ac1b2432 refactor the func and event of taint cluster
Signed-off-by: Poor12 <shentiecheng@huawei.com>
2023-07-31 17:32:24 +08:00
chaosi-zju 3026fc74df test: add e2e test for seamless migration.
Signed-off-by: chaosi-zju <chaosi@zju.edu.cn>
2023-07-29 15:05:15 +08:00
zhy76 4f20be1c94 add e2e test when cluster join, update, karmada need to reconcile search cache
Signed-off-by: zhy76 <958474674@qq.com>
2023-07-20 09:31:39 +00:00
jwcesign 7ac69c1864 e2e: Add e2e for CronFederatedHPA
Signed-off-by: jwcesign <jiangwei115@huawei.com>
2023-07-18 20:36:15 +08:00
karmada-bot 8388314fbe
Merge pull request #3796 from Vacant2333/add_E2E_coverage_of_the_features_doc
Add e2e coverage of the features doc
2023-07-17 15:53:30 +08:00
Vacant2333 8626bb4cb1 add e2e coverage details
Signed-off-by: Vacant2333 <rentian.zhou@daocloud.io>
2023-07-17 14:39:46 +08:00
karmada-bot 276428e0ee
Merge pull request #3700 from chaunceyjiang/flake
e2e: should be queried on member clusters rather than the control plane
2023-06-26 15:10:25 +08:00
chaunceyjiang a10f895c1e feat: Support modification synchronization of custom resources as dependency
Signed-off-by: chaunceyjiang <chaunceyjiang@gmail.com>
2023-06-26 10:43:51 +08:00
chaunceyjiang b9b1006965 e2e: should be queried on member clusters rather than the control plane
Signed-off-by: chaunceyjiang <chaunceyjiang@gmail.com>
2023-06-25 18:03:04 +08:00
yike21 3c312b7d30 cleanup the ci about interpreter-interpret-health test
Signed-off-by: yike21 <yike21@qq.com>
2023-06-10 20:21:36 +08:00
chaunceyjiang a6d58ee34a fix When EnableEmptyWorkloadPropagation flag is false zero deployment still can be propagated to member cluster
Signed-off-by: chaunceyjiang <chaunceyjiang@gmail.com>
2023-05-30 17:33:44 +08:00
karmada-bot 3151f02f6e
Merge pull request #3547 from zishen/master
Add UT for pkg/controllers/binding/binding_controller.go
2023-05-22 16:44:55 +08:00
zishen 8391b233c4 Add UT for pkg/controllers/binding/binding_controller.go
Signed-off-by: zishen <softwarebtg@163.com>
2023-05-19 14:22:32 +08:00
Poor12 6ad5a2704e [flake] application failover testing
Signed-off-by: Poor12 <shentiecheng@huawei.com>
2023-05-15 20:22:48 +08:00
LronDC f9b1071c3c Add --auto-generate-propagation-policy and --propagation-policy-name options to promote command
Signed-off-by: LronDC <lun.su@daocloud.io>
2023-05-12 18:53:43 +08:00