Commit Graph

43 Commits

Author SHA1 Message Date
zach593 807153fdff move CreateOrUpdateWork() and related functions to controllers/ctrlutil
Signed-off-by: zach593 <zach_li@outlook.com>
2025-01-10 11:34:58 +08:00
changzhen 41ba3c769d cancel concurrent test for SetupWithManager
Signed-off-by: changzhen <changzhen5@huawei.com>
2024-11-11 19:57:50 +08:00
chaosi-zju b605d9d637 ensure controller names are unique when emitting metrics
Signed-off-by: chaosi-zju <chaosi@zju.edu.cn>
2024-11-11 12:05:12 +08:00
Amir Alavi 866959a072
implement preserveResourcesOnDeletion to support migration rollback
Signed-off-by: Amir Alavi <amiralavi7@gmail.com>
2024-10-14 20:36:53 -04:00
Mohamed Awnallah be87fd5e71 pkg+test: unify usage of policyv1alpha1 operators
Signed-off-by: Mohamed Awnallah <mohamedmohey2352@gmail.com>
2024-09-09 22:56:47 +03:00
Anuj Agrawal 4cc0c20a7c Added tests for namespace controller
Signed-off-by: Anuj Agrawal <anujagrawal380@gmail.com>
2024-08-17 20:50:49 +05:30
Anuj Agrawal b00fac8069 Added tests for namespace controller
Signed-off-by: Anuj Agrawal <anujagrawal380@gmail.com>
2024-08-17 19:15:53 +05:30
Anuj Agrawal 633f5ba31e Added tests for namespace controller
Signed-off-by: Anuj Agrawal <anujagrawal380@gmail.com>
2024-08-14 22:33:20 +05:30
Anuj Agrawal 57575675ef Added test for namespace controller
Signed-off-by: Anuj Agrawal <anujagrawal380@gmail.com>
2024-08-14 12:32:41 +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
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
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
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
changzhen a16b4e220b replace work namespace/name labels with annotations
Signed-off-by: changzhen <changzhen5@huawei.com>
2024-04-24 22:08:02 +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
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
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
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
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
chaunceyjiang 593264e2c6 Allows setting wildcards for SkippedPropagatingNamespaces
Signed-off-by: chaunceyjiang <chaunceyjiang@gmail.com>
2023-04-19 13:16:06 +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 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
helen 681d51bd7f need return after ch <-
Signed-off-by: helen <haitao.zhang@daocloud.io>
2022-12-11 20:28:55 +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
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
hejianpeng c038cdd127 support ClusterOverridePolicy in namespaces_sync_controller
Signed-off-by: hejianpeng <hejianpeng2@huawei.com>
2022-07-28 11:00:32 +08:00
jinglinax@163.com 9a9534d09e return err replace nil
Signed-off-by: jinglinax@163.com <jinglinax@163.com>
2022-02-17 15:56:30 +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
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
esto a6165e47f9 update import-aliases
Signed-off-by: esto <1291156784@qq.com>
2021-09-15 15:13:14 +08:00
pigletfly 8edb376966 Move labels to apis
Signed-off-by: pigletfly <wangbing.adam@gmail.com>
2021-08-06 00:03:00 +08:00
pigletfly 3a29c15a7e Add skipped-propagating-namespaces flag
Signed-off-by: pigletfly <wangbing.adam@gmail.com>
2021-07-22 17:41:50 +08:00
changzhen 1fe244c3d9 refactor util.CreateOrUpdateWork with helper.CreateOrUpdateWork
Signed-off-by: changzhen <changzhen5@huawei.com>
2021-07-15 16:27:19 +08:00
pigletfly d4bbde279f Add skippedPropagatingAPIs option
Signed-off-by: pigletfly <wangbing.adam@gmail.com>
2021-07-08 19:17:01 +08:00
changzhen f32bd501e6 add service_export_controller to watch serviceexport and report endpointslices to karmada
Signed-off-by: changzhen <changzhen5@huawei.com>
2021-07-03 16:33:07 +08:00
Rui Fang bbcf69f368
work: fix workload name conflicts (#358) (#359)
Signed-off-by: Garrybest <garrybest@foxmail.com>
2021-05-20 10:34:27 +08:00
RainbowMango 763c2a10e7 Adopt Reconcile() method signature change
Adopt MapOjbect removing change
Adopt event handling object changes
Adopt ToRequestsFunc to MapFunc change
Adopt EnqueueRequestsFromMapFunc change
Adopt runerable interface change
Adopt using admission review version v1

Signed-off-by: RainbowMango <renhongcai@huawei.com>
2021-05-08 19:12:35 +08:00
yangcheng-icbc 3c193e1760
the binding name for any resource template should be a name-kind format (#248)
Signed-off-by: icbc-yangcheng <shineus1996@gmail.com>
2021-03-31 16:33:45 +08:00
Zhen Chang 1b0aa972a1
Add webhook for mutating workload object of work resource (#206)
Signed-off-by: changzhen <changzhen5@huawei.com>
2021-03-10 17:46:58 +08:00
Hongcai Ren f262e2680f
Deprecate created-by label (#194)
Signed-off-by: RainbowMango <renhongcai@huawei.com>
2021-03-06 11:13:23 +08:00
Hanbo Li 14154f7c77
add namespace sync controller (#173)
Signed-off-by: lihanbo <lihanbo2@huawei.com>
2021-02-26 09:49:24 +08:00