Commit Graph

84 Commits

Author SHA1 Message Date
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
chaosi-zju 915c35dad7 Detect priority change happend on ClusterPropagationPolicy
and enqueue ClusterPropagationPolicy that could repreempte.

Signed-off-by: chaosi-zju <chaosi@zju.edu.cn>
2023-08-24 15:28:13 +08:00
RainbowMango 62a0e50fa2 Detect priority change happend on PropagationPolicy
and enqueue PropagationPolicy that could repreempte.

Signed-off-by: RainbowMango <qdurenhongcai@gmail.com>
2023-08-23 11:11:05 +08:00
karmada-bot e5277b6317
Merge pull request #3879 from whitewindmills/detector-resource
fix bug: avoid updating directly cached resource template
2023-08-03 17:22:45 +08:00
whitewindmills 909ba8527a avoid updating directly cached resource template
for clean up policy

Signed-off-by: whitewindmills <jayfantasyhjh@gmail.com>
2023-08-03 14:59:54 +08:00
karmada-bot d80cad4302
Merge pull request #3868 from chaunceyjiang/fix_dependencies
fix: fix dependent resources being created and deleted repeatedly when the dependent resource has a status field.
2023-08-02 17:47:44 +08:00
chaunceyjiang 1f3bf9e423 fix: fix dependent resources being created and deleted repeatedly when the dependent resource has a status field.
Signed-off-by: chaunceyjiang <chaunceyjiang@gmail.com>
2023-08-02 14:57:34 +08:00
whitewindmills f26a31fc11 add metrics and events for policy preemption
Signed-off-by: whitewindmills <jayfantasyhjh@gmail.com>
2023-08-01 20:57:15 +08:00
karmada-bot 71584bca33
Merge pull request #3845 from whitewindmills/policy-preemption
feat: implement preemption between propagation policies
2023-07-31 19:57:49 +08:00
whitewindmills 272e4b548c implement preemption between propagation policies
pp preempts cpp

Signed-off-by: whitewindmills <jayfantasyhjh@gmail.com>
2023-07-31 17:20:43 +08:00
chaunceyjiang 3274d64927 fix: When the PP is deleted, the propagationpolicy.karmada.io/name label in the resource template's labels is not removed.
Signed-off-by: chaunceyjiang <chaunceyjiang@gmail.com>

fix: When the PP is deleted, the propagationpolicy.karmada.io/name label in the resource template's labels is not removed.

Signed-off-by: chaunceyjiang <chaunceyjiang@gmail.com>
2023-07-27 18:09:00 +08:00
karmada-bot f160ea7854
Merge pull request #3837 from whitewindmills/priority_preemption
feat: implement propagation policy priority preemption
2023-07-27 09:31:38 +08:00
whitewindmills d487e2cb0c implement propagation policy priority preemption
Signed-off-by: whitewindmills <jayfantasyhjh@gmail.com>
2023-07-26 18:51:00 +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
Poor12 e71a360f17 delete redundant deepcopy
Signed-off-by: Poor12 <shentiecheng@huawei.com>
2023-06-09 17:37:12 +08:00
karmada-bot 8594406e5f
Merge pull request #3398 from whitewindmills/code-cleanup
Fix inspection errors
2023-05-19 20:28:53 +08:00
whitewindmills 89295f9606 Fix inspection errors
Signed-off-by: whitewindmills <jayfantasyhjh@gmail.com>
2023-05-17 17:06:27 +08:00
zach593 8d221b110c enable concurrency for pp and cpp
Signed-off-by: zach593 <zach_li@outlook.com>
2023-05-10 16:10:51 +08:00
Poor12 2c9d900c28 add some fields for GracefulEvictionTask
Signed-off-by: Poor12 <shentiecheng@huawei.com>
2023-04-24 14:59:27 +08:00
chaunceyjiang 593264e2c6 Allows setting wildcards for SkippedPropagatingNamespaces
Signed-off-by: chaunceyjiang <chaunceyjiang@gmail.com>
2023-04-19 13:16:06 +08:00
karmada-bot 31435bf7f2
Merge pull request #3239 from ctripcloud/merge-lables
merge labels when building RB/CRB by ClusterPropagationPolicy
2023-03-13 16:58:18 +08:00
lxtywypc e1eb161b87 merge labels as well when applying cluster propagation policy
Signed-off-by: lxtywypc <lxtywypc@gmail.com>
2023-03-06 11:14:17 +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
Poor12 a616758eeb refactor some codes
Signed-off-by: Poor12 <shentiecheng@huawei.com>
2023-02-17 10:41:03 +08:00
Poor12 5eff625925 add placement for binding
Signed-off-by: Poor12 <shentiecheng@huawei.com>
2023-02-10 15:18:01 +08:00
Poor12 9ae3e50ae8 detector watch pp fields changed other than resource selector
Signed-off-by: Poor12 <shentiecheng@huawei.com>
2023-02-09 15:16:21 +08:00
Poor12 b1f3476b51 clean up unused values
Signed-off-by: Poor12 <shentiecheng@huawei.com>
2023-02-03 10:00:47 +08:00
Poor12 bec9ca1f6a Support multiple schedulers
Signed-off-by: Poor12 <shentiecheng@huawei.com>
2023-02-01 12:00:40 +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
Garrybest f94aefaa6b fix RB may not be created when delete and create the same object immediately
Signed-off-by: Garrybest <garrybest@foxmail.com>
2022-12-17 17:21:38 +08:00
changzhen 598935a5f7 fix flaking test of editing policy resourceSelectors
Signed-off-by: changzhen <changzhen5@huawei.com>
2022-12-13 16:55:31 +08:00
Poor12 7013563291 add metrics for resource
Signed-off-by: Poor12 <shentiecheng@huawei.com>
2022-11-28 14:38:22 +08:00
karmada-bot 8ed80ad4ac
Merge pull request #2786 from XiShanYongYe-Chang/fix-2779
[bugfix] ignore resource that do not match with policy before apply policy
2022-11-16 16:16:05 +08:00
changzhen c58ba70b86 ignore resource that do not match with policy before apply policy
Signed-off-by: changzhen <changzhen5@huawei.com>
2022-11-15 20:21:54 +08:00
Poor12 5418b5d265 refactor events
Signed-off-by: Poor12 <shentiecheng@huawei.com>
2022-11-15 15:34:22 +08:00
jwcesign 4c6fc6e367 Implement priority of PropagationPolicy/ClusterPropagationPolicy
Signed-off-by: jwcesign <jiangwei115@huawei.com>
2022-11-14 23:07:38 +08:00
changzhen 5a767f4f21 allow to update the resourceSelector of PropagationPolicy/ClusterPropagationPolicy
Signed-off-by: changzhen <changzhen5@huawei.com>
2022-11-09 16:40:57 +08:00
Poor12 ac6aaa31f1 add override policy event
Signed-off-by: Poor12 <shentiecheng@huawei.com>
2022-11-09 10:25:23 +08:00
changzhen bc57544df8 Disable the preemption matching of pp/cpp priority
Signed-off-by: changzhen <changzhen5@huawei.com>
2022-11-03 20:54:13 +08:00
changzhen d62cf8b20e add ut for policy priority
Signed-off-by: changzhen <changzhen5@huawei.com>
2022-11-02 11:36:58 +08:00
Garrybest 9bd626b3cc add implicit priority for PP and CPP
Signed-off-by: Garrybest <garrybest@foxmail.com>
2022-09-30 14:48:05 +08:00
Garrybest 92d8c69d46 stop publish duplicated event
Signed-off-by: Garrybest <garrybest@foxmail.com>
2022-09-23 10:43:59 +08:00
RainbowMango 8461e4fb8c rename and re-organize the informermanager
Signed-off-by: RainbowMango <qdurenhongcai@gmail.com>
2022-08-09 17:24:23 +08:00
weilaaa 4ed701069d optimize unstructured convert methods
Signed-off-by: weilaaa <weilanidaye@gmail.com>
2022-08-04 11:38:25 +08:00
Garrybest 8ea96c0c55 add event error msg when failed to apply policy
Signed-off-by: Garrybest <garrybest@foxmail.com>
2022-08-01 10:37:31 +08:00
z50023861 4469d39aa5 Reduce the number of reconciliations on update in detector
Signed-off-by: z50023861 <zhuwentao15@huawei.com>
2022-07-27 10:23:35 +08:00
calvin0327 532b22f80d cleanup federated resource quota
Signed-off-by: calvin0327 <wen.chen@daocloud.io>
2022-07-08 09:55:22 +08:00
changzhen c2b6c78061 remove unused check in detector resource Eventifilter
Signed-off-by: changzhen <changzhen5@huawei.com>
2022-06-25 16:05:53 +08:00
chaunceyjiang fdbe1d6649 fix log
Signed-off-by: chaunceyjiang <chaunceyjiang@gmail.com>
2022-06-02 17:45:56 +08:00