Commit Graph

705 Commits

Author SHA1 Message Date
Anuj Agrawal 4632376772 Improved test coverage of pkg/controllers/context
Signed-off-by: Anuj Agrawal <anujagrawal380@gmail.com>
2024-08-07 15:25:10 +05:30
Anuj Agrawal 59fe3901a2 Improved test coverage of pkg/controllers/context
Signed-off-by: Anuj Agrawal <anujagrawal380@gmail.com>
2024-08-07 12:24:13 +05:30
Anuj Agrawal ad46b67e2d Improved test coverage of pkg/controllers/context
Signed-off-by: Anuj Agrawal <anujagrawal380@gmail.com>
2024-08-07 12:20:35 +05:30
Anuj Agrawal baff21a75a Improved Test Coverage of pkg/controllers/context
Signed-off-by: Anuj Agrawal <anujagrawal380@gmail.com>
2024-08-07 09:26:45 +05:30
xovoxy 38ee277de7 optimize: used unified context in controller
Signed-off-by: xovoxy <xilovele@gmail.com>
2024-08-06 11:44:20 +08:00
karmada-bot 4124ba8513
Merge pull request #5299 from whitewindmills/app-failover-logs
cleanup: Print seconds to avoid unreadable minutes
2024-08-06 10:27:26 +08:00
karmada-bot 920baceafd
Merge pull request #4838 from a7i/work-suspend
feat: cluster-level resource propagation pause and resume capabilities
2024-08-06 09:38:27 +08:00
whitewindmills 4af54fb68b Print seconds to avoid unreadable minutes
Signed-off-by: whitewindmills <jayfantasyhjh@gmail.com>
2024-08-05 19:04:34 +08:00
karmada-bot 6b87604fed
Merge pull request #5281 from grosser/grosser/role-labels
add karmada.io/system label to created clusterrole+bindings
2024-08-02 18:04:23 +08:00
Michael Grosser f4df03f6e0
add karmada.io/system label to created clusterrole+bindings
Signed-off-by: Michael Grosser <michael@grosser.it>
2024-07-31 18:46:21 -07:00
xovoxy f30e450a36 optimize: used a unified context in cluster_controller reconcile
Signed-off-by: xovoxy <xilovele@gmail.com>
2024-07-31 15:36:58 +08:00
Amir Alavi 58dbd6b56e
feat: cluster-level resource propagation pause and resume capabilities
Signed-off-by: Amir Alavi <amiralavi7@gmail.com>
2024-07-29 19:03:52 -04:00
karmada-bot c38f169916
Merge pull request #5247 from chaosi-zju/metrics
add metrics for recreate/update resource event when sync work status
2024-07-26 15:49:19 +08:00
chaosi-zju 32850c405c add metrics for recreate/update resource event when sync work status
Signed-off-by: chaosi-zju <chaosi@zju.edu.cn>
2024-07-26 11:17:48 +08:00
Michael Grosser 13f0f6e6d8
add karmada.io/system label to created execution namespaces
Signed-off-by: Michael Grosser <michael@grosser.it>
2024-07-25 07:48:49 -07:00
changzhen d1c298ef3d make cleanup with multiclusterservice controllers
Signed-off-by: changzhen <changzhen5@huawei.com>
2024-07-22 11:15:58 +08:00
karmada-bot a5070c758b
Merge pull request #5188 from XiShanYongYe-Chang/fix-residual-work-in-mcs
Fix the issue of residual work in the MultiClusterService feature.
2024-07-17 11:09:10 +08:00
changzhen fc73d6759e Fix the issue of residual work in the MultiClusterService feature.
Signed-off-by: changzhen <changzhen5@huawei.com>
2024-07-13 19:02:28 +08:00
RainbowMango e8164eeebd Adopt controller-runtime braking changes: generics support PR2783
Adopt controller-runtime breaking changes: make decoder as interface. PR2736

Signed-off-by: RainbowMango <qdurenhongcai@gmail.com>
2024-07-13 16:49:01 +08:00
karmada-bot 25f9fdd8c0
Merge pull request #5147 from XiShanYongYe-Chang/remove-managed-label-in-collected-eps
Remove managed label in collected endpointslice and derived service
2024-07-08 09:56:02 +08:00
changzhen 81e30eb367 remove unused cleanup code in endpointslice-controller
Signed-off-by: changzhen <changzhen5@huawei.com>
2024-07-06 17:53:12 +08:00
changzhen 9aee02019d remove managed label in collected endpointslice and derived service
Signed-off-by: changzhen <changzhen5@huawei.com>
2024-07-06 17:37:17 +08:00
whitewindmills 2450bd6041 Correct licenses format
Signed-off-by: whitewindmills <jayfantasyhjh@gmail.com>
2024-07-04 10:35:16 +08:00
karmada-bot f3b25c617d
Merge pull request #5042 from XiShanYongYe-Chang/add-work-namespace-annotations
add work namespace/name annotations in the endpointslice resources
2024-06-17 14:58:45 +08:00
karmada-bot b624cb8c64
Merge pull request #4867 from veophi/bugfix/deployment-generation
Align federated Deployment's observedGeneration semantics with its native
2024-06-17 11:18:44 +08:00
孙伟祥 933343df10 fix deployment observed generation logic
Signed-off-by: 孙伟祥 <sunweixiang@xiaohongshu.com>
2024-06-14 14:05:42 +08:00
whitewindmills 58c15c8ed9 fix code inspection errors
Signed-off-by: whitewindmills <jayfantasyhjh@gmail.com>
2024-06-12 17:55:59 +08:00
changzhen dca46571fe add work namespace/name annotations in the eps
Signed-off-by: changzhen <changzhen5@huawei.com>
2024-06-12 16:29:00 +08:00
changzhen d5a317a165 fix-remedy-e2e-errors
Signed-off-by: changzhen <changzhen5@huawei.com>
2024-06-12 15:22:01 +08:00
karmada-bot 95e32649a9
Merge pull request #5028 from RainbowMango/pr_nominate_owners
nominate code owners of scheduler, resourceinterpreter, apis
2024-06-12 09:34:40 +08:00
karmada-bot 3ff49ad1d7
Merge pull request #4986 from whitewindmills/fix-aggregate-binding-status
Integrate UpdateStatus function
2024-06-11 19:48:39 +08:00
whitewindmills 6d18bea052 Integrate UpdateStatus function
Signed-off-by: whitewindmills <jayfantasyhjh@gmail.com>
2024-06-11 16:57:51 +08:00
RainbowMango 1c9395ba6e nominate code owners of scheduler, resourceinterpreter, apis
Signed-off-by: RainbowMango <qdurenhongcai@gmail.com>
2024-06-07 11:59:02 +08:00
changzhen 64a5d0fa7a remove pp/cpp namespace/name labels
Signed-off-by: changzhen <changzhen5@huawei.com>
2024-06-03 09:58:19 +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
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
RainbowMango 197d3358f7 Fixed golint issues and new piecies of wait.Poll
Signed-off-by: RainbowMango <qdurenhongcai@gmail.com>
2024-05-22 11:39:45 +08: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
changzhen dcd04aecfe add empty judgement for placement in taint-manager
Signed-off-by: changzhen <changzhen5@huawei.com>
2024-05-21 16:23:13 +08:00
karmada-bot 1ebaf1d5a8
Merge pull request #4950 from whitewindmills/bindID-webhook
cleanup dead code of generating binding permanent id
2024-05-21 10:22:25 +08:00
whitewindmills a9f3c02948 clean up dead code of generating binding permanent id
Signed-off-by: whitewindmills <jayfantasyhjh@gmail.com>
2024-05-16 16:46:28 +08:00
zhzhuang-zju 13e13e9c14 migrate wait.PollUntil to wait.PollUntilContextCancel
Signed-off-by: zhzhuang-zju <m17799853869@163.com>
2024-05-16 11:16:11 +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
karmada-bot 4ccffccc70
Merge pull request #4876 from chaosi-zju/reschedule-ut
add ut for WorkloadRebalancer controller
2024-05-10 16:17:15 +08:00
karmada-bot e30ca1b9cc
Merge pull request #4882 from whitewindmills/work-labels-annotations
Use webhook to set associated labels and annotations of work
2024-05-10 11:51:33 +08:00
whitewindmills a5d8ba7c09 Use webhook to set associated labels and annotations of work
Signed-off-by: whitewindmills <jayfantasyhjh@gmail.com>
2024-05-10 11:03:19 +08:00
chaosi-zju 2b7d07ba1f add ut for WorkloadRebalancer controller.
Signed-off-by: chaosi-zju <chaosi@zju.edu.cn>
2024-05-10 10:54:14 +08:00
karmada-bot abb77d954c
Merge pull request #4911 from whitewindmills/rv-compare
chore: Use != for RV comparison
2024-05-07 20:13:31 +08:00
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