Commit Graph

36 Commits

Author SHA1 Message Date
vie-serendipity ec6a83c2ad improve overridemanager test
Signed-off-by: vie-serendipity <2733147505@qq.com>
2023-08-15 19:28:00 +08:00
chaunceyjiang 77e2157cf8 CommandArgsOverrider supports Job
Signed-off-by: chaunceyjiang <chaunceyjiang@gmail.com>
2023-04-17 14:32:33 +08:00
karmada-bot db4de92607
Merge pull request #3037 from chaunceyjiang/composedlabels
fix: OverridePolicy of labels/annotations with composed-labels
2023-01-13 09:59:05 +08:00
chaunceyjiang 55f1a2bfcb fix: OverridePolicy of labels/annotations with composed-labels
Signed-off-by: chaunceyjiang <chaunceyjiang@gmail.com>
2023-01-12 21:13:56 +08:00
wongearl 3c0bd41f80 add UT for ApplyOverridePolicies
Signed-off-by: wongearl <vamliang@163.com>
2023-01-12 17:32:19 +08:00
chaunceyjiang c3f5eaa3f7 fix failed to apply Label/Annotation Overriders
Signed-off-by: chaunceyjiang <chaunceyjiang@gmail.com>
2022-12-16 18:34:33 +08:00
karmada-bot 9784ed3a5d
Merge pull request #2609 from chaunceyjiang/implicit
add implicit priority for OP and COP
2022-12-06 10:34:16 +08:00
zhuzhenghao 915b1857c9 Move to registry.k8s.io
Signed-off-by: zhuzhenghao <zhenghao.zhu@daocloud.io>
2022-11-29 18:55:22 +08:00
chaunceyjiang 200a58768e add implicit priority for OP and COP
Signed-off-by: chaunceyjiang <chaunceyjiang@gmail.com>
2022-11-29 11:26:24 +08:00
Poor12 5418b5d265 refactor events
Signed-off-by: Poor12 <shentiecheng@huawei.com>
2022-11-15 15:34:22 +08:00
Poor12 ac6aaa31f1 add override policy event
Signed-off-by: Poor12 <shentiecheng@huawei.com>
2022-11-09 10:25:23 +08:00
chaunceyjiang 50ec86b796 Add UT for imageoverride
Signed-off-by: chaunceyjiang <chaunceyjiang@gmail.com>
2022-11-01 11:30:08 +08:00
chaunceyjiang 8bcfd7810b introduce overriders for annotation and label
Signed-off-by: chaunceyjiang <chaunceyjiang@gmail.com>
2022-10-10 22:15:14 +08:00
weilaaa 4ed701069d optimize unstructured convert methods
Signed-off-by: weilaaa <weilanidaye@gmail.com>
2022-08-04 11:38:25 +08:00
likakuli 56dfba331b fix empty resource selectors which result to policy will not be considered matched
Signed-off-by: likakuli <1154584512@qq.com>
2022-05-01 17:09:36 +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
RainbowMango 990bf25072 mark override policy spec.targetCluster and spec.overriders deprecated
Signed-off-by: RainbowMango <qdurenhongcai@gmail.com>
2022-01-11 19:24:30 +08:00
Xinzhao Xu 5b3c9245b8 Add unittest for getOverridersFromOverridePolicies
Signed-off-by: Xinzhao Xu <z2d@jifangcheng.com>
2021-12-21 10:37:34 +08:00
Xinzhao Xu 9a0c78757a Refactor the matching method in overridemanager
Signed-off-by: Xinzhao Xu <z2d@jifangcheng.com>
2021-12-21 10:37:14 +08:00
Xinzhao Xu 2de0290aab Implementing the new OverrideRules
Signed-off-by: Xinzhao Xu <z2d@jifangcheng.com>
2021-12-16 21:36:21 +08:00
changzhen 3abbacfe83 refactor imageoverride: use converted resouce to extract json patches
Signed-off-by: changzhen <changzhen5@huawei.com>
2021-08-28 18:21:27 +08:00
betaincao c8e8a6269d add command and args override policy
Signed-off-by: betaincao <betaincao@gmail.com>
2021-08-19 17:00:29 +08:00
lfbear 8b2bec26ea add imageoverride support for DaemonSet
Signed-off-by: lfbear <lfbear@gmail.com>
2021-08-13 14:42:39 +08:00
changzhen 4ae750b65d add UT of imageOverrider
Signed-off-by: changzhen <changzhen5@huawei.com>
2021-05-26 18:16:44 +08:00
changzhen fa9a2ea662 ImageOverrider Implementation
Signed-off-by: changzhen <changzhen5@huawei.com>
2021-05-26 18:16:44 +08:00
Zhen Chang 54e198eaa9
sort OverridePolicy/ClusterOverridePolicy by name when more than one policy matched (#316)
Signed-off-by: changzhen <changzhen5@huawei.com>
2021-05-13 16:12:44 +08:00
futuretea 39d1a3a636 Fix goimports
Signed-off-by: futuretea <1913508671@qq.com>
2021-05-13 11:31:19 +08:00
Hongcai Ren 24ab1993ee
Added more clear description for override API (#318)
Signed-off-by: RainbowMango <renhongcai@huawei.com>
2021-05-12 20:12:07 +08:00
Hanbo Li a3ebc74cde
trigger resync for override policy changes (#250)
Signed-off-by: lihanbo <lihanbo2@huawei.com>
2021-04-02 17:34:04 +08:00
RainbowMango 4bba4df183 deprecated karmada.io/override and karmada.io/cluster-override label
Signed-off-by: RainbowMango <renhongcai@huawei.com>
2021-03-30 16:13:58 +08:00
RainbowMango f1777392f9 record applied override items for work object
Signed-off-by: RainbowMango <renhongcai@huawei.com>
2021-03-30 16:13:58 +08:00
Hanbo Li d578be945b
support cluster override policy (#208)
Signed-off-by: lihanbo <lihanbo2@huawei.com>
2021-03-11 20:04:18 +08:00
Kevin Wang 422cd8e555 rename propagationstrategy to policy in implementations
Signed-off-by: Kevin Wang <kevinwzf0126@gmail.com>
2021-01-25 15:55:06 +08:00
Kevin Wang 4afcabe5f1 rename apigroup name, from propagationstrategy to policy
Signed-off-by: Kevin Wang <kevinwzf0126@gmail.com>
2021-01-25 15:55:06 +08:00
Kevin Wang da394ab07a rename membercluster api to cluster
Signed-off-by: Kevin Wang <kevinwzf0126@gmail.com>
2021-01-23 09:53:52 +08:00
Hongcai Ren f04229cec9
Support override policy (#130)
* support override resources by policy

Co-authored-by: lihanbo <lihanbo2@huawei.com>

Signed-off-by: RainbowMango <renhongcai@huawei.com>

* Update vendor

Signed-off-by: RainbowMango <renhongcai@huawei.com>
2021-01-20 10:33:18 +08:00