Commit Graph

106 Commits

Author SHA1 Message Date
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
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
Garrybest 5770247365 ignore to propagate service account token
Signed-off-by: Garrybest <garrybest@foxmail.com>
2022-04-07 19:44:33 +08:00
lihanbo 95825fecfb update binding's labels when it's policy has been deleted
Signed-off-by: lihanbo <lihanbo2@huawei.com>
2022-03-26 15:52:40 +08:00
RainbowMango 11fd0f935c Refactor ratelimit flags to make it easier to share with karmada-agent.
Signed-off-by: RainbowMango <qdurenhongcai@gmail.com>
2022-03-18 17:25:13 +08:00
changzhen d711b72f45 tidy up lifted file
Signed-off-by: changzhen <changzhen5@huawei.com>
2022-03-15 10:42:32 +08:00
RainbowMango 8a402f8e94 chore: cleanup ratelimiter flags
Signed-off-by: RainbowMango <qdurenhongcai@gmail.com>
2022-03-08 08:57:01 +08:00
pigletfly d8470c2c52 Fix resource binding get reconciled multiple times
Signed-off-by: pigletfly <wangbing.adam@gmail.com>
2022-03-04 14:21:13 +08:00
karmada-bot f3b1142599
Merge pull request #1399 from pigletfly/add-ratelimiter-flags
Introduce ratelimiter flags
2022-03-03 17:25:13 +08:00
pigletfly 9e28d6c6e8 add ratelimiter flags
Signed-off-by: pigletfly <wangbing.adam@gmail.com>
2022-03-03 16:09:39 +08:00
dddddai c5802628bc fetch resource from cache instead of api-server
Signed-off-by: dddddai <dddwq@foxmail.com>
2022-03-02 17:24:22 +08:00
lihanbo 4569663b40 adapt for propagating dependencies
Signed-off-by: lihanbo <lihanbo2@huawei.com>
2022-02-26 15:49:06 +08:00
pigletfly 957be91796 Fix controller reconcile concurrent
Signed-off-by: pigletfly <wangbing.adam@gmail.com>
2022-02-24 15:54:14 +08:00
dddddai 323c4c07da Rework "bugfix: resource binding not created occasionally"
Signed-off-by: dddddai <dddwq@foxmail.com>
2022-02-17 19:03:56 +08:00
dddddai 5a96bbfe1d Revert "bugfix: resource binding is not created"
This reverts commit c770cc10f3.

Signed-off-by: dddddai <dddwq@foxmail.com>
2022-02-13 18:01:48 +08:00
pigletfly eef56c31d2 Fix add retry on createorupdate
Signed-off-by: pigletfly <wangbing.adam@gmail.com>
2022-02-11 14:30:36 +08:00
pigletfly 314e137e94 Fix log in detector
Signed-off-by: pigletfly <wangbing.adam@gmail.com>
2022-01-25 20:31:14 +08:00
dddddai c770cc10f3 bugfix: resource binding is not created
reconcile PP/CPPs and resource templates in one goroutine

Signed-off-by: dddddai <dddwq@foxmail.com>
2022-01-24 10:15:12 +08:00
karmada-bot abc767bfcd
Merge pull request #1277 from iawia002/unstructured
Clean up the code that converts Unstructured objects
2022-01-20 10:09:25 +08:00
Xinzhao Xu 501f68aea4 Clean up the code that converts Unstructured objects
Signed-off-by: Xinzhao Xu <z2d@jifangcheng.com>
2022-01-19 10:28:30 +08:00
changzhen fc7616e234 update HookEnabled interface with resourceinterpreter
Signed-off-by: changzhen <changzhen5@huawei.com>
2022-01-19 09:27:15 +08:00
Xinzhao Xu 2f55e6c583 Implementing the AggregateStatus hook
Signed-off-by: Xinzhao Xu <z2d@jifangcheng.com>
2022-01-18 20:35:26 +08:00
Garrybest 74e36f723b fix event type of apply policy
Signed-off-by: Garrybest <garrybest@foxmail.com>
2022-01-17 11:16:22 +08:00
lihanbo b238572263 add events to resource template
Signed-off-by: lihanbo <lihanbo2@huawei.com>
2021-12-20 17:31:38 +08:00
Garrybest 7445bd90da fix slow enqueue of async worker
Signed-off-by: Garrybest <garrybest@foxmail.com>
2021-12-04 19:44:33 +08:00
huangminjie 80467aea48 feature: change namespace filter rule
some namespaces(like karmada-test, karmada-dev, etc.) will be propagated

Signed-off-by: huangminjie <minjie.huang@daocloud.io>
2021-12-01 16:19:11 +08:00
xinjie xu c5539fd153 optimization the process of getting PropagationPolicy with higher priority
Signed-off-by: xinjie xu <1912747539@qq.com>
2021-11-25 18:32:11 +08:00
changzhen 7224234a74 Update resourece interpreter pkg/file name and variable/parameter/comment naming
Signed-off-by: changzhen <changzhen5@huawei.com>
2021-11-20 17:48:00 +08:00
Kevin Wang f8af0363f6 Update resource interpreter api (aka. explorewebhook)
Signed-off-by: Kevin Wang <kevinwzf0126@gmail.com>
2021-11-20 14:59:52 +08:00
changzhen d81f6e81ce hooks matching and sending requests to webhook
Signed-off-by: changzhen <changzhen5@huawei.com>
2021-11-15 10:34:18 +08:00
RainbowMango 9e7fde6ab9 Setup custom resource explorer
Signed-off-by: RainbowMango <qdurenhongcai@gmail.com>
2021-11-12 17:11:24 +08:00
Garrybest 47a6823afa support job scheduling
Signed-off-by: Garrybest <garrybest@foxmail.com>
2021-11-09 14:29:34 +08:00
changzhen 27558d5a51 move detector directory from pkg/util/ to pkg/
Signed-off-by: changzhen <changzhen5@huawei.com>
2021-10-20 10:21:08 +08:00