Commit Graph

705 Commits

Author SHA1 Message Date
chaosi-zju 57c982f327 feat: support update event in WorkloadRebalancer
Signed-off-by: chaosi-zju <chaosi@zju.edu.cn>
2024-05-07 15:43:55 +08:00
whitewindmills 9c70349878 Use != for RV comparison
Signed-off-by: whitewindmills <jayfantasyhjh@gmail.com>
2024-05-07 15:37:23 +08:00
karmada-bot ae0d3fa18e
Merge pull request #4884 from RainbowMango/pr_bump_k8s_1294
Bump Kubernetes dependencies to v1.29.4
2024-05-06 20:13:11 +08:00
RainbowMango d4b610cad6 fix lint issues
Signed-off-by: RainbowMango <qdurenhongcai@gmail.com>
2024-05-06 11:36:54 +08:00
chaosi-zju ccfc43e5bb fix patching WorkloadRebalancer failed due to misuse of shared slices
Signed-off-by: chaosi-zju <chaosi@zju.edu.cn>
2024-04-30 18:25:19 +08:00
whitewindmills f9f3d47c30 ObjectWatcher.Delete checks if resource can be deleted
Signed-off-by: whitewindmills <jayfantasyhjh@gmail.com>
2024-04-28 18:45:44 +08:00
whitewindmills 8328054439 Deprecate name/namespace labels of work
Signed-off-by: whitewindmills <jayfantasyhjh@gmail.com>
2024-04-28 15:22:44 +08:00
karmada-bot 68577f19f9
Merge pull request #4743 from whitewindmills/deprecated-labels
Deprecate name/namespace labels of pp/cpp
2024-04-25 20:47:02 +08:00
changzhen a16b4e220b replace work namespace/name labels with annotations
Signed-off-by: changzhen <changzhen5@huawei.com>
2024-04-24 22:08:02 +08:00
chaosi-zju c600991f36 Introduce a new API named WorkloadRebalancer to support rescheduling.
Signed-off-by: chaosi-zju <chaosi@zju.edu.cn>
2024-04-23 10:34:11 +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
karmada-bot 4898c0fc55
Merge pull request #4811 from whitewindmills/deprecated-rb_crb-labels
Deprecate key labels of rb/crb
2024-04-10 16:07:07 +08:00
whitewindmills f8d6be5320 Deprecate key labels of rb/crb
Signed-off-by: whitewindmills <jayfantasyhjh@gmail.com>
2024-04-10 11:30:43 +08:00
karmada-bot bc60437977
Merge pull request #4800 from yizhang-zen/yizhang/rename
Rename a function to match with updated behavior
2024-04-10 09:27:48 +08:00
yizhang-zen 04395e3579 Rename func to getClusterNameFromAnnotation to match with updated behavior
Signed-off-by: yizhang-zen <yizhang@zendesk.com>
2024-04-09 14:06:27 -07:00
whitewindmills b0bbaa32e7 Fix the bug of mcs binding losing resourcebinding.karmada.io/permanent-id label
Signed-off-by: whitewindmills <jayfantasyhjh@gmail.com>
2024-04-09 18:30:43 +08:00
huangyanfeng 7c2b3e19ee if an error is non-nil not need to set Result.Requeue true
Signed-off-by: huangyanfeng <huangyanfeng1992@gmail.com>
2024-04-03 14:08:22 +08:00
karmada-bot 4e2548250b
Merge pull request #4774 from XiShanYongYe-Chang/fix-wrong-delete-eps
fix bug of wrong delete endpointslice collect from member cluster
2024-03-28 21:50:38 +08:00
changzhen 3121bd9b88 fix bug of wrong delete endpointslice collect from member cluster
Signed-off-by: changzhen <changzhen5@huawei.com>
2024-03-28 20:36:20 +08:00
changzhen 0e60af8ee2 remove work label on the member cluster resource
Signed-off-by: changzhen <changzhen5@huawei.com>
2024-03-28 12:56:35 +08:00
karmada-bot ff7322acf2
Merge pull request #4729 from chaosi-zju/hpav5
fix deployment replicas syncer in case that `status.replicas` haven't been collected from member cluster to template
2024-03-27 18:38:38 +08:00
chaosi-zju 31d6855e63 fix deployment replicas syncer in case that status.replicas haven't been collected
Signed-off-by: chaosi-zju <chaosi@zju.edu.cn>
2024-03-27 17:34:46 +08:00
changzhen 6b8e73e37a add endpointslice-controller finalizer for Endpointslice Work object
Signed-off-by: changzhen <changzhen5@huawei.com>
2024-03-27 14:44:49 +08:00
changzhen d7db9c5acc fix eps remain when karmada-controller-manager restart
Signed-off-by: changzhen <changzhen5@huawei.com>
2024-03-27 14:30:45 +08:00
karmada-bot c5c6ffa4e9
Merge pull request #4718 from liangyuanpeng/cleanup_label_uid
Delete the labels of uid.
2024-03-26 17:02:37 +08:00
chaosi-zju 3012c808f8 fix deployment replicas syncer in case deployment status changed before label added
Signed-off-by: chaosi-zju <chaosi@zju.edu.cn>
2024-03-18 11:39:42 +08:00
Lan Liang cd2812e30e Delete the labels of uid.
Signed-off-by: Lan Liang <gcslyp@gmail.com>
2024-03-18 03:00:19 +00:00
changzhen 473387bbd5 add ut for remedy controller eventhandler
Signed-off-by: changzhen <changzhen5@huawei.com>
2024-03-15 14:35:54 +08:00
changzhen 6b04bffea0 add ut for remedy util function
Signed-off-by: changzhen <changzhen5@huawei.com>
2024-03-15 11:01:18 +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
changzhen 1edd563268 fix panic when update remedy.spec.clusteraffinity to empty
Signed-off-by: changzhen <changzhen5@huawei.com>
2024-02-28 11:14:03 +08:00
changzhen 081610e33e add remedy controller
Signed-off-by: changzhen <changzhen5@huawei.com>
2024-02-27 22:24:34 +08:00
zhzhuang-zju 8241b3cab2 update work status condition when recreate failed
Signed-off-by: zhzhuang-zju <m17799853869@163.com>
2024-02-21 11:07:29 +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
Mohammed Affan 970435c3d1 Add linting for unused parameters
Signed-off-by: Mohammed Affan <mohammed.affan.727@gmail.com>
2024-01-13 12:26:54 +05:30
jwcesign 947a80e00f cleanup: enable revive(var-naming rule) checking
Signed-off-by: jwcesign <jwcesign@gmail.com>
2024-01-10 12:15:03 +08:00
jwcesign e36a80c86c cleanup: enable revive(blank-imports rule) checking
Signed-off-by: jwcesign <jwcesign@gmail.com>
2024-01-10 10:07:55 +08:00
jwcesign 367db18cb6 cleanup: enable revive(var-declaration rule) checking
Signed-off-by: jwcesign <jwcesign@gmail.com>
2024-01-09 20:07:23 +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
karmada-bot 34b701416e
Merge pull request #4503 from zhzhuang-zju/comment
cleanup: enable revive(package-comments) checking
2024-01-04 18:33:28 +08:00
karmada-bot a1c1eedcc7
Merge pull request #4498 from chaosi-zju/lint-error-strings
cleanup: enable revive(error-strings) checking
2024-01-03 11:03:27 +08:00
zhzhuang-zju b695e5da36 cleanup: enable revive(package-comments) checking
Signed-off-by: zhzhuang-zju <m17799853869@163.com>
2024-01-03 10:19:14 +08:00
chaosi-zju 25b67f54d6 cleanup: enable revive(error-strings) checking
Signed-off-by: chaosi-zju <chaosi@zju.edu.cn>
2024-01-02 20:37:36 +08:00
chang.qiangqiang 9ec160ab9f fix(work): motify gracefulEvictionTasks sub field to pointer type
Signed-off-by: chang.qiangqiang <chang.qiangqiang@immomo.com>
2023-12-22 17:06:31 +08:00
karmada-bot c6b2adaafc
Merge pull request #4453 from chaosi-zju/dev
execute InterpretHealth even if statusRaw is nil
2023-12-20 16:45:15 +08:00
chaosi-zju 56e0d8c9e6 execute InterpretHealth even if statusRaw is nil
Signed-off-by: chaosi-zju <chaosi@zju.edu.cn>
2023-12-20 15:44:39 +08:00
jwcesign 3f6431dae2 feat: ignore reconcile the mcs triggered by svc if the mcs is not CrossCluster
Signed-off-by: jwcesign <jwcesign@gmail.com>
2023-12-20 10:21:58 +08:00
karmada-bot 515594592b
Merge pull request #4433 from jwcesign/report-event
feat: report event when the service doesn't exist/when endpointslice api is disabled
2023-12-20 09:25:16 +08:00
karmada-bot ba76508fd3
Merge pull request #4448 from jwcesign/remove-finalizer
fix: clean the finalizer of mcs if the ExposureType transforms from CrossCluster to LoadBalancer
2023-12-20 09:22:15 +08:00
jwcesign 36ac29485e fix: clean the finalizer of mcs if the ExposureType transforms from CrossCluster to LoadBalancer
Signed-off-by: jwcesign <jwcesign@gmail.com>
2023-12-19 18:24:02 +08:00
jwcesign cfd88926dd feat: report event when the service doesn't exist/when endpointslice api is disabled
Signed-off-by: jwcesign <jwcesign@gmail.com>
2023-12-19 18:19:26 +08:00
Zhizhen He 25a62c6c57
fix typo
Signed-off-by: Zhizhen He <hezhizhen.yi@gmail.com>
2023-12-17 16:12:03 +08:00
karmada-bot f7b6e79054
Merge pull request #4423 from jwcesign/fix-pp-conflict-v3
fix: Update RB once new clusters are added to trigger the propagation of service to these new clusters
2023-12-15 10:20:11 +08:00
jwcesign f0bc661579 fix: Update RB once new clusters are added to trigger the propagation of service to these new clusters
Signed-off-by: jwcesign <jwcesign@gmail.com>
2023-12-14 21:52:23 +08:00
jwcesign 18a2e07e5b fix: do not recreate endpointslice if k8s controller deletes it in provider member clusters
Signed-off-by: jwcesign <jwcesign@gmail.com>
2023-12-14 21:46:18 +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 33fdf5225f
Merge pull request #4094 from ctripcloud/fix-binding-status-error-rate
Use Patch() when binding-status controller update workload's status
2023-12-09 10:11:06 +08:00
jwcesign 090c1f0174 feat: clean eps work of the provison cluster once the mcs work deleted
Signed-off-by: jwcesign <jwcesign@gmail.com>
2023-12-07 14:09:07 +08:00
jwcesign cb6508b7ad feat: dispatch eps to the newly joined consumption clusters
Signed-off-by: jwcesign <jwcesign@gmail.com>
2023-12-05 20:20:52 +08:00
karmada-bot 0b1681ed83
Merge pull request #4360 from Rains6/dev-mcs-zhc
feat: sync mcs work when cluster joined or unjoin
2023-12-05 17:36:03 +08:00
HongCen 8277a985b0 List&watch cluster creation/deletion, reconcile the work in the corresponding cluster execution namespace
Signed-off-by: HongCen <zhouhongcen1@huawei.com>
2023-12-04 17:06:08 +08:00
karmada-bot 5b391e7535
Merge pull request #4338 from ctripcloud/fix-incorrect-fortype
fix incorrect forType in clusterResourceBinding status controller
2023-12-04 11:08:02 +08:00
jwcesign f2810b3dc9 cleanup: make the name unified of mcs
Signed-off-by: jwcesign <jwcesign@gmail.com>
2023-12-02 15:23:15 +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 ffed3f3b33 feat: clean the endpointslice if the current cluster is not in the mcs consumption clusters
Signed-off-by: jwcesign <jwcesign@gmail.com>
2023-11-30 20:26:20 +08:00
jwcesign 5932615cba feat: support mcs with native svc name
Signed-off-by: jwcesign <jwcesign@gmail.com>
2023-11-30 15:55:15 +08:00
lxtywypc f8569d3b37 fix incorrect forType in clusterResourceBinding status controller
Signed-off-by: lxtywypc <lxtywypc@gmail.com>
2023-11-29 19:02:19 +08:00
z00623291 33ae852fa0 List&watch mcs and service, reconcile the work in execution namespace
Signed-off-by: z00623291 <zhouhongcen1@huawei.com>
2023-11-29 17:50:26 +08:00
chaosi-zju e9e8653c88 resourceModels supports extended resources
Signed-off-by: chaosi-zju <chaosi@zju.edu.cn>
2023-11-23 19:08:32 +08:00
karmada-bot 55547b2acf
Merge pull request #4199 from jwcesign/add-id-label
feat: add resource id label
2023-11-23 10:44:52 +08:00
karmada-bot 4fe9dff3a8
Merge pull request #4204 from zhy76/copyright
feat: add license and verify license for code file
2023-11-22 10:23:52 +08:00
jwcesign 7e6387e98f feat: add resoruce id label
Signed-off-by: jwcesign <jwcesign@gmail.com>
2023-11-20 11:07:11 +08:00
RainbowMango 2f39163615 Nominate code owners
Signed-off-by: RainbowMango <qdurenhongcai@gmail.com>
2023-11-20 10:39:38 +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
zhangdiandian 7cef5b8086 fix: The PULL mode cluster cannot be deleted immediately
Signed-off-by: zhangdiandian <1635468471@qq.com>
2023-10-26 13:45:40 +00:00
karmada-bot d6cc5b92e2
Merge pull request #4138 from jwcesign/fix-version-sync
fix: Sync workload's status.observedGeneration if it's updated
2023-10-24 19:52:27 +08:00
halfrost 92ab33ebc0 1. Change modelSortings to be a member variable of ResourceSummary to solve multithreading issues
2. Delete unused functions

Signed-off-by: halfrost <ydz627@gmail.com>
2023-10-23 09:25:09 -07:00
zach593 8520227897 improve update workload status error rate too high
Change-Id: I531e40fa99e657af3c060e59c13c47a835356274
Signed-off-by: zach593 <zach_li@outlook.com>
2023-10-20 10:28:07 +08:00
jwcesign e50f414b4f fix: Update workload's status.observedGeneration if it's updated
Signed-off-by: jwcesign <jwcesign@gmail.com>
2023-10-17 13:33:56 +08:00
watermeion e5ee1636cf fix fhpa controller panic when SelectPolicy is nil
Signed-off-by: watermeion <watermeion@hotmail.com>
2023-10-09 15:16:06 +08:00
lxtywypc 8a56a8dc34 use status.DesiredReplicas instead of status.CurrentReplicas of HPA to update resource scale
Signed-off-by: lxtywypc <lxtywypc@gmail.com>
2023-09-22 10:20:54 +08:00
chaosi-zju a4828cc410 retain for hpa controlled Deployment resource
Signed-off-by: chaosi-zju <chaosi@zju.edu.cn>
2023-09-21 19:44:01 +08:00
lxtywypc 5ae8178ec3 add replicas syncer for resources with HPA
Signed-off-by: lxtywypc <lxtywypc@gmail.com>
2023-09-20 17:29:34 +08:00
chaosi-zju 19c63fca28 remove insecureSkipTLSVerify in UT test
Signed-off-by: chaosi-zju <chaosi@zju.edu.cn>
2023-09-13 15:07:45 +08:00
whitewindmills c8423cb237 fix spelling errors
Signed-off-by: whitewindmills <jayfantasyhjh@gmail.com>
2023-09-04 10:22:39 +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
karmada-bot b852552ed1
Merge pull request #4007 from jwcesign/add-uid-label
feature: Add the UID of the owner resource in labels and include the details in annotations.
2023-08-28 15:13:07 +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 758a6ceaf0
Merge pull request #3972 from zhy76/metric
feat: add performance metrics for FederatedHPA
2023-08-26 16:23:05 +08:00
jwcesign 67a9802325 fix: do not reconcile when the resoruce generation doesn't change
Signed-off-by: jwcesign <jwcesign@gmail.com>
2023-08-25 10:47:39 +08:00
zhy76 d64894c8a6 feat: add performance metrics for FederatedHPA
Signed-off-by: zhy76 <958474674@qq.com>
2023-08-23 07:56:53 +00:00
karmada-bot 273cc9a4dd
Merge pull request #3949 from whitewindmills/CronFederatedHPA_metrics
feat: add cron federated hpa metrics
2023-08-23 10:11:02 +08:00
karmada-bot 3710dc4dab
Merge pull request #3948 from zishen/repair_ut
repair the cluster_status_controller_test
2023-08-21 21:59:01 +08:00
whitewindmills 9e4caa393c add cron federated hpa metrics
cron federated hpa & cron federated hpa rule

Signed-off-by: whitewindmills <jayfantasyhjh@gmail.com>
2023-08-21 14:38:53 +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
Tanggui Bian bc689e9142 repair the cluster_status_controller_test
Signed-off-by: Tanggui Bian <softwarebtg@163.com>
2023-08-19 18:03:19 +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
zongqingli fe0febbf1f fix federated-hpa plain metric calc
Signed-off-by: zach593 <zach_li@outlook.com>
2023-08-09 16:47:54 +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
karmada-bot 9a862db2be
Merge pull request #3852 from jwcesign/delete-hpa-controller
cleanup: remove old version hpa controller
2023-08-03 09:43:52 +08:00
lxtywypc fad172d4e9 use ClusterCacheSyncTimeout for resources on fed control plane as well
Signed-off-by: lxtywypc <lxtywypc@gmail.com>
2023-08-01 18:22:06 +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
karmada-bot 7381933798
Merge pull request #3730 from RainbowMango/pr_update_k8s_v127
Bump Kubernetes dependencies to v1.27.3
2023-07-31 12:29:43 +08:00
RainbowMango 4ee4b22f05 Adopt Kubernetes breaking changes: PR 113542 which require singular names for core types
Adopt breaking change of contriller-runtime PR 2122
Adopt breaking change of contriller-runtime PR 2296
Adopt breaking change of controller-runtime PR 2139
Adopt breaking change of controller-runtime PR 2135
Adopt breaking change of Kubernetes PR 116218
Adopt breaking change of controller-runtime PR 2149
Adopt breaking change of controller-runtime PR 2150
Adopt breaking change of controller-runtime PR 2134
Adopt breaking change of controller-runtime PR 2293
Adopt breaking change of controller-runtime PR 2144
Adopt k8s feature: watch list. PR 115402
Adopt breaking change of Kubernetes PR 117102
Adopt Kubernetes change: disable staticcheck
Fix unit tests that failure due to fake-client behavior changes.

Signed-off-by: RainbowMango <qdurenhongcai@gmail.com>
2023-07-29 16:47:38 +08:00
jwcesign 4da22c3f28 fix: fix bugs about validation of targetMinReplicas<=targetMaxReplicas and CronFederatedHPA status
Signed-off-by: jwcesign <jwcesign@gmail.com>
2023-07-29 15:53:17 +08:00
jwcesign 20129ca5cd cleanup: delete old version hpa controller
Signed-off-by: jwcesign <jwcesign@gmail.com>
2023-07-27 17:36:21 +08:00
chaosi-zju 2b060cbf3b feat: realization of ConflictResolution in PP.
Signed-off-by: chaosi-zju <chaosi@zju.edu.cn>
2023-07-25 20:23:37 +08:00
jwcesign 4f41da2381 fix: reduce metrics size by merge metrics with different apiVersion/namespace/name
Signed-off-by: jwcesign <jwcesign@gmail.com>
2023-07-14 17:26:05 +08:00
RainbowMango eb0a9bb018 Promote code owners as per community membership
Signed-off-by: RainbowMango <qdurenhongcai@gmail.com>
2023-07-04 10:25:10 +08:00
karmada-bot 0ebb565096
Merge pull request #3748 from RainbowMango/pr_nominate_scaling_owners
Nominate FederatedHPA feature owner
2023-07-04 10:02:19 +08:00
jwcesign 068022db24 feat: Support CronFederatedHPA to scale worloads/FederatedHPA at specific time
Signed-off-by: jwcesign <jwcesign@gmail.com>
2023-07-03 20:25:02 +08:00
RainbowMango 2eda32bdbb Nominate FederatedHPA feature owner
Signed-off-by: RainbowMango <qdurenhongcai@gmail.com>
2023-07-03 16:44:07 +08:00
karmada-bot db9d56c74b
Merge pull request #3673 from Poor12/add-hpa-controller
hpa-controller supports custom metrics
2023-06-21 17:21:49 +08:00
Poor12 eeab59c297 add custom metrics
Signed-off-by: Poor12 <shentiecheng@huawei.com>
2023-06-21 15:54:52 +08:00
karmada-bot d5e604c24c
Merge pull request #3130 from yanfeng1992/fix-remove-cluster-re-queue
unjoin cluster check namespace reduce cluster enqueue
2023-06-16 11:41:50 +08:00
huangyanfeng da234809fc add ExecutionSpaceRetryFrequency to reduce cluster requeue
Signed-off-by: huangyanfeng <huangyanfeng1992@gmail.com>
2023-06-12 20:01:49 +08:00
Poor12 e71a360f17 delete redundant deepcopy
Signed-off-by: Poor12 <shentiecheng@huawei.com>
2023-06-09 17:37:12 +08:00
karmada-bot 527efd174f
Merge pull request #3621 from realnumber666/add-ut/crb_status_controller
Add ut for `pkg/controllers/applicationfailover` and `pkg/controllers/status`
2023-06-06 12:31:23 +08:00
rayywu 7864e11267 Add UT for crb_application_failover_controller.go and rb_application_failover_controller.go
Signed-off-by: rayywu <rayywu@tencent.com>
2023-06-05 20:30:47 +08:00
rayywu e97d29500b Add UT for pkg/controllers/applicationfailover/common.go
Signed-off-by: rayywu <rayywu@tencent.com>
2023-06-02 00:26:49 +08:00
rayywu 8e0f186302 Add UT for pkg/controllers/status/rb_status_controller.go
Signed-off-by: rayywu <rayywu@tencent.com>
2023-06-01 20:41:18 +08:00
rayywu 0ee9be39bb Add UT for pkg/controllers/status/crb_status_controller.go
Signed-off-by: rayywu <rayywu@tencent.com>
2023-06-01 20:33:47 +08:00
Poor12 3a1464828a add hpa controller
Signed-off-by: Poor12 <shentiecheng@huawei.com>
2023-05-30 17:26:02 +08:00
karmada-bot d01ded2c2d
Merge pull request #3568 from realnumber666/add-ut/work_status_controller_0522
Add UT for pkg/controllers/status/work_status_controller.go
2023-05-23 21:03:55 +08:00
rayywu 1412b2d12c Add UT for pkg/controllers/status/work_status_controller.go
Signed-off-by: rayywu <rayywu@tencent.com>
2023-05-23 16:50:33 +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
karmada-bot 26b272aef8
Merge pull request #3535 from realnumber666/add-ut/cluster_status_controller
Add UT for pkg/controllers/status/cluster_status_controller_test.go
2023-05-22 16:17:54 +08:00
karmada-bot 8594406e5f
Merge pull request #3398 from whitewindmills/code-cleanup
Fix inspection errors
2023-05-19 20:28:53 +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
rayywu 0c9b8d9a1e Add UT for pkg/controllers/status/cluster_status_controller_test.go
Signed-off-by: rayywu <rayywu@tencent.com>
2023-05-18 16:12:14 +08:00
whitewindmills 89295f9606 Fix inspection errors
Signed-off-by: whitewindmills <jayfantasyhjh@gmail.com>
2023-05-17 17:06:27 +08:00
chaunceyjiang c602c4ba02 fix: When suppression and graciously Tasks coexist in the GracefulEvictionTask queue, the graciously task cannot work.
Signed-off-by: chaunceyjiang <chaunceyjiang@gmail.com>
2023-05-16 20:04:15 +08:00
Poor12 6ad5a2704e [flake] application failover testing
Signed-off-by: Poor12 <shentiecheng@huawei.com>
2023-05-15 20:22:48 +08:00
Amir Alavi 121afd21ff
add managed-by label to resources created by karmada controllers (#3262)
* update value of managed-by label to 'karmada'

Signed-off-by: Amir Alavi <amiralavi7@gmail.com>

* change managed by label to a karmada reserved label

Signed-off-by: Amir Alavi <amiralavi7@gmail.com>

---------

Signed-off-by: Amir Alavi <amiralavi7@gmail.com>
2023-05-12 14:35:24 +08:00
fei.li 28e148ff0c fix DeepEqual in federated-resource-quota-status-controller;
Signed-off-by: lifei <504034114@qq.com>
2023-05-11 17:19:54 +08:00
Poor12 3e63826f97 fix application controller
Signed-off-by: Poor12 <shentiecheng@huawei.com>
2023-05-08 10:48:43 +08:00
karmada-bot 99f3c4f1f4
Merge pull request #3461 from Poor12/add-health-controller-draft
Add application failover controller
2023-05-06 16:18:20 +08:00
Poor12 d06fe2b5b3 add application failover controller
Signed-off-by: Poor12 <shentiecheng@huawei.com>
2023-05-06 10:36:54 +08:00
chaunceyjiang 9592aad85f fix: graceful-eviction still works after an unexpected restart of karmada-controller-manager
Signed-off-by: chaunceyjiang <chaunceyjiang@gmail.com>
2023-05-03 20:49:58 +08:00
RainbowMango 7f484fd463 Revert "avoid the same cluster appearing in both spec.clusters and spec.gracefulEvictionTasks"
This reverts commit da44a5d9f9.

Signed-off-by: RainbowMango <qdurenhongcai@gmail.com>
2023-04-26 15:17:27 +08:00
Poor12 da44a5d9f9 avoid the same cluster appearing in both spec.clusters and spec.gracefulEvictionTasks
Signed-off-by: Poor12 <shentiecheng@huawei.com>
2023-04-25 10:22:08 +08:00
Poor12 2c9d900c28 add some fields for GracefulEvictionTask
Signed-off-by: Poor12 <shentiecheng@huawei.com>
2023-04-24 14:59:27 +08:00
karmada-bot 507e66f6c6
Merge pull request #3373 from chaunceyjiang/wildcards
feat: Allows setting wildcards for SkippedPropagatingNamespaces
2023-04-19 17:18:11 +08:00
chaunceyjiang 593264e2c6 Allows setting wildcards for SkippedPropagatingNamespaces
Signed-off-by: chaunceyjiang <chaunceyjiang@gmail.com>
2023-04-19 13:16:06 +08:00
xigang 6aac228706 cleanup: remove unused cluster controller log
Signed-off-by: xigang <wangxigang2014@gmail.com>
2023-04-17 17:23:01 +08:00
karmada-bot 7589eaec60
Merge pull request #3321 from Poor12/fix-duplicated
Do not revise replicas when strategy is duplicated
2023-04-07 08:11:55 +08:00
Poor12 75c638ddc1 do not revise replicas when duplicated
Signed-off-by: Poor12 <shentiecheng@huawei.com>
2023-04-06 15:05:45 +08:00
rayywu 4335107894 Add UT for deploy.go and cluster_condition_cache.go
Signed-off-by: rayywu <rayywu@tencent.com>
2023-04-03 17:25:33 +08:00
xigang 4c38c4e6c1 Fix: remove the setTransitionTime method from the cluster status controller
Signed-off-by: xigang <wangxigang2014@gmail.com>
2023-03-23 09:55:07 +08:00
changzhen ada76ab7b7 implementing search proxy unifiedauth
Signed-off-by: changzhen <changzhen5@huawei.com>
2023-03-17 10:10:18 +08:00
Poor12 e7f70a00b6 fix issue when cluster fails and recovers
Signed-off-by: Poor12 <shentiecheng@huawei.com>
2023-03-07 15:39:25 +08:00
changzhen eecadfd43a add bindingStatus controller to aggregate work status and update the
status of resource template

Signed-off-by: changzhen <changzhen5@huawei.com>
2023-02-23 16:08:36 +08:00
jwcesign c923705c69 Refactor execution_controller.go
Signed-off-by: jwcesign <jiangwei115@huawei.com>
2023-02-23 14:34:24 +08:00
changzhen b0fe95d60b remove code for collecting clusterID under upgrading
Signed-off-by: changzhen <changzhen5@huawei.com>
2023-02-14 10:52:06 +08:00
RainbowMango a1e8f164cb adopt static check issues
Signed-off-by: RainbowMango <qdurenhongcai@gmail.com>
2023-01-31 09:22:41 +08:00
RainbowMango c07ad07f3b Adopt lease name change
Signed-off-by: RainbowMango <qdurenhongcai@gmail.com>
2023-01-29 18:08:19 +08:00
RainbowMango 88e3c2add1 simplify context tests
Signed-off-by: RainbowMango <qdurenhongcai@gmail.com>
2023-01-19 16:57:21 +08:00
karmada-bot 434b7b6578
Merge pull request #3003 from Fish-pro/fix/klogformat
Fix log output errors
2022-12-29 18:06:50 +08:00
karmada-bot a20dd6e630
Merge pull request #2935 from jwcesign/code-review-fix-v2
Delete the redundant logic in func GenerateExecutionSpaceName
2022-12-29 15:39:50 +08:00
chen zechun f3e0b45521 Modify log output errors
Signed-off-by: chen zechun <zechun.chen@daocloud.io>
2022-12-29 13:58:00 +08:00
chen zechun 83d43235e8 Uniform error log output starts with uppercase
Signed-off-by: chen zechun <zechun.chen@daocloud.io>
2022-12-28 19:12:36 +08:00
jwcesign 8acd1a4503 Delete the redundant logic in func GenerateExecutionSpaceName
Signed-off-by: jwcesign <jiangwei115@huawei.com>
2022-12-28 15:59:24 +08:00
Garrybest 2dd48e029a dispense replicas for job
Signed-off-by: Garrybest <garrybest@foxmail.com>
2022-12-23 10:11:44 +08:00
karmada-bot 941637e805
Merge pull request #2942 from helen-frank/fix/namespace_sync_controller-buildWorks
need return after ch <-
2022-12-12 11:54:22 +08:00
helen 681d51bd7f need return after ch <-
Signed-off-by: helen <haitao.zhang@daocloud.io>
2022-12-11 20:28:55 +08:00
Poor12 7c4cd0b5b6 fix work status not sync to control plane
Signed-off-by: Poor12 <shentiecheng@huawei.com>
2022-12-09 15:43:34 +08:00
karmada-bot 60a9a649ed
Merge pull request #2880 from helen-frank/feature/buildWorksConcurrency
namespace_sync_controller: buildWorks parallel sync namespace
2022-12-08 10:30:18 +08:00
helen 2f3d6dc859 namespace_sync_controller: buildWorks parallel sync namespace
Signed-off-by: helen <haitao.zhang@daocloud.io>
2022-12-07 20:25:54 +08:00
chen zechun 7b64cc5e4e Correct the typos
Signed-off-by: chen zechun <zechun.chen@daocloud.io>
2022-12-05 18:27:28 +08:00
karmada-bot 9f660f8e56
Merge pull request #2868 from Poor12/add-metrics-for-resource
Add metrics for resource
2022-11-28 18:10:11 +08:00
karmada-bot c416581aa9
Merge pull request #2835 from Poor12/add-event-for-gracefuleviction
Add events for graceful eviction controller
2022-11-28 17:59:10 +08:00
Poor12 7013563291 add metrics for resource
Signed-off-by: Poor12 <shentiecheng@huawei.com>
2022-11-28 14:38:22 +08:00
Poor12 e988f75fb0 add events for graceful eviction controller
Signed-off-by: Poor12 <shentiecheng@huawei.com>
2022-11-26 10:27:10 +08:00
karmada-bot 6ef120f6e1
Merge pull request #2496 from Poor12/controller-metrics
Add metrics for cluster
2022-11-25 09:25:08 +08:00
karmada-bot dfd0ace0b1
Merge pull request #2830 from Poor12/add-event-for-mcs
Add events for MCS
2022-11-24 10:47:07 +08:00
Poor12 ddf05632fa add event for mcs
Signed-off-by: Poor12 <shentiecheng@huawei.com>
2022-11-24 09:38:11 +08:00
RainbowMango f8646f5d91 Update Golang version from v1.18.3 to v1.19.3
Signed-off-by: RainbowMango <qdurenhongcai@gmail.com>
2022-11-23 19:47:12 +08:00
Poor12 22d372ba79 add metrics for cluster
Signed-off-by: Poor12 <shentiecheng@huawei.com>
2022-11-23 16:32:26 +08:00
karmada-bot afd1c074c0
Merge pull request #2812 from Poor12/add-event-for-federated-resource-quota
Add event for federatedResourceQuota
2022-11-22 11:58:05 +08:00
Poor12 64f152bb2c add event for federated resource quota
Signed-off-by: Poor12 <shentiecheng@huawei.com>
2022-11-22 10:47:32 +08:00
cleverhu e1e1616197 unify namespace and name style
Signed-off-by: cleverhu <shouping.hu@daocloud.io>
2022-11-19 23:42:01 +08:00
Poor12 f4a37c7cbf add SyncImpersonationConfig event
Signed-off-by: Poor12 <shentiecheng@huawei.com>
2022-11-16 11:54:32 +08:00
Poor12 5418b5d265 refactor events
Signed-off-by: Poor12 <shentiecheng@huawei.com>
2022-11-15 15:34:22 +08:00
karmada-bot 3cbae40434
Merge pull request #2771 from wuyingjun-lucky/nil_resource_selector
Fix overridepolicy with nil resource selector could not work
2022-11-13 10:41:56 +08:00
wuyingjun 41b1cc4c8c fix overridepolicy with nil resource selector could not work
Signed-off-by: wuyingjun <wuyingjun_yewu@cmss.chinamobile.com>
2022-11-12 17:36:30 +08:00
Poor12 840de4fc84 add reflectStatusToWork and InterpretHealth event
Signed-off-by: Poor12 <shentiecheng@huawei.com>
2022-11-11 12:07:49 +08:00
wuyingjun 81d8fdd1a6 remove overridepolicy trigger on cluster_resource_binding_controller
Signed-off-by: wuyingjun <wuyingjun_yewu@cmss.chinamobile.com>
2022-11-08 21:39:32 +08:00
karmada-bot 6502bda995
Merge pull request #2688 from Poor12/improve-cluster-event
Add the CreateExecutionSpaceSucceed and RemoveExecutionSpaceSucceed event
2022-11-08 19:45:52 +08:00
yanggang a0a7674d26
reuse context for controller-manager base-context
Signed-off-by: yanggang <gang.yang@daocloud.io>
2022-11-05 18:51:06 +08:00
Poor12 e438cfcf75 add CreateExecutionSpaceSucceed and RemoveExecutionSpaceSucceed event
Signed-off-by: Poor12 <shentiecheng@huawei.com>
2022-11-03 11:48:10 +08:00
calvin 965bcc11c0 optimize collectIDForClusterObjectIfNeeded error message
Signed-off-by: calvin <wen.chen@daocloud.io>
2022-11-02 15:47:32 +08:00
jwcesign ecfec33ec3 Add label "namespace.karmada.io/skip-auto-propagation" to control whether to propagate ns to member clusters
Signed-off-by: jwcesign <jiangwei115@huawei.com>
2022-10-29 11:35:38 +08:00
karmada-bot 5d42e82b7b
Merge pull request #2596 from lonelyCZ/pr-agent-cert-rotation
Implement auto certificate rotation function for karmada-agent
2022-10-27 14:20:20 +08:00
lonelyCZ 0826fca253 Implement the certificate rotation function for karmada-agent
Signed-off-by: lonelyCZ <531187475@qq.com>
2022-10-27 12:56:32 +08:00
stingshen e5d156dd61 check if cluster ImpersonatorSecretRef is nil before using it
Signed-off-by: stingshen <stingshen@126.com>
2022-10-26 12:36:28 +08:00
Poor12 047b2fb7ae fix a typo about events
Signed-off-by: Poor12 <shentiecheng@huawei.com>
2022-10-20 20:42:23 +08:00
chaunceyjiang f865e5542c Put chaunceyjiang onto the controllers and resourceinterpreter reviewers list
Signed-off-by: chaunceyjiang <chaunceyjiang@gmail.com>
2022-10-19 09:47:04 +08:00
lonelyCZ 3bcee9db07 Unify the dynamic client name for work_status_controller
Signed-off-by: lonelyCZ <531187475@qq.com>
2022-10-09 10:25:38 +08:00
Garrybest 92d8c69d46 stop publish duplicated event
Signed-off-by: Garrybest <garrybest@foxmail.com>
2022-09-23 10:43:59 +08:00
changzhen 9387ab3fe7 Use Cluster secret ref namespace in unified-auth-controller when generate ClusterRoleBinding
Signed-off-by: changzhen <changzhen5@huawei.com>
2022-09-16 15:23:56 +08:00