Commit Graph

110 Commits

Author SHA1 Message Date
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
whitewindmills 91f72f998c Transplant propagation policy finalizer to karmada-webhook
Signed-off-by: whitewindmills <jayfantasyhjh@gmail.com>
2024-07-08 10:23:38 +08:00
whitewindmills 2450bd6041 Correct licenses format
Signed-off-by: whitewindmills <jayfantasyhjh@gmail.com>
2024-07-04 10:35:16 +08:00
karmada-bot d05b92153b
Merge pull request #4998 from chaosi-zju/dev
fix demo for dependencyInterpretation
2024-06-05 10:50:34 +08:00
chaosi-zju 3c731e5d08 fix demo for dependencyInterpretation
Signed-off-by: chaosi-zju <chaosi@zju.edu.cn>
2024-06-04 11:50:30 +08:00
changzhen 6edf69debb fix upgrade error with #5003
Signed-off-by: changzhen <changzhen5@huawei.com>
2024-05-30 18:07:07 +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
whitewindmills b7678c92b2 Add validation on policy permanent ID
Signed-off-by: whitewindmills <jayfantasyhjh@gmail.com>
2024-05-22 17:59:52 +08:00
whitewindmills 93a04cbf0d Generate work permanent id in webhook
Signed-off-by: whitewindmills <jayfantasyhjh@gmail.com>
2024-05-11 09:38:37 +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
RainbowMango d4b610cad6 fix lint issues
Signed-off-by: RainbowMango <qdurenhongcai@gmail.com>
2024-05-06 11:36:54 +08:00
karmada-bot f33f3f8bf3
Merge pull request #4474 from jwcesign/add-uid
feat: add permanent id label to pp/cpp/rb/crb/work resources
2024-04-30 11:39:24 +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
jwcesign 6a54a9abb4 feat: add permanent id label to pp/cpp/rb/crb/work resources
Signed-off-by: jwcesign <jwcesign@gmail.com>
2024-04-10 16:08:51 +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 e36a80c86c cleanup: enable revive(blank-imports rule) checking
Signed-off-by: jwcesign <jwcesign@gmail.com>
2024-01-10 10:07:55 +08:00
jwcesign dc4338398a feat: prevent updates to mcs.types or when multiple types are involved.
Signed-off-by: jwcesign <jwcesign@gmail.com>
2023-12-19 20:59:25 +08:00
jwcesign e77fe55851 feat: fix conflicts with pp
Signed-off-by: jwcesign <jwcesign@gmail.com>
2023-12-14 19:46:46 +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
jwcesign a39416cb14 api: define API for MultiClusterService
Signed-off-by: jwcesign <jwcesign@gmail.com>
2023-11-24 13:36:54 +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
karmada-bot 557348fea0
Merge pull request #4074 from Vacant2333/add-resource-deletion-protection-by-label
[Feat] Resource Deletion Protection
2023-10-18 11:35:23 +08:00
Vacant2333 1df2420f70 [feat] namespace deletion protection
Signed-off-by: Vacant2333 <vacant2333@gmail.com>
2023-10-17 14:54:54 +08:00
lonelyCZ 9aefb4c4dd Fix to validate spec.types of MultiClusterService Webhook
Signed-off-by: lonelyCZ <chengzhe@zju.edu.cn>
2023-10-09 13:12:24 +08:00
changzhen 734cf3ab8f fix depndencies lua scrpit bug
Signed-off-by: changzhen <changzhen5@huawei.com>
2023-09-05 17:36:24 +08:00
chaunceyjiang 2c55f10641 feat: Refactor the mechanism for propagating serviceexport derived svc and eps.
Signed-off-by: chaunceyjiang <chaunceyjiang@gmail.com>
2023-08-18 16:04:35 +08:00
whitewindmills a061740bb9 add mcs validation ut
Signed-off-by: whitewindmills <jayfantasyhjh@gmail.com>
2023-08-07 11:13:10 +08:00
karmada-bot 89880c8153
Merge pull request #3855 from whitewindmills/hpa-unit
ut: add cron-fhpa validation unit-test
2023-07-31 18:41:42 +08:00
karmada-bot 7381933798
Merge pull request #3730 from RainbowMango/pr_update_k8s_v127
Bump Kubernetes dependencies to v1.27.3
2023-07-31 12:29:43 +08:00
whitewindmills b23449245d add cron-fhpa validation unit-test
Signed-off-by: whitewindmills <jayfantasyhjh@gmail.com>
2023-07-31 09:54:17 +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
jwcesign 4da22c3f28 fix: fix bugs about validation of targetMinReplicas<=targetMaxReplicas and CronFederatedHPA status
Signed-off-by: jwcesign <jwcesign@gmail.com>
2023-07-29 15:53:17 +08:00
jwcesign ee4b250067 feat: add more validation for CronFederatedHPA
Signed-off-by: jwcesign <jwcesign@gmail.com>
2023-07-24 20:33:26 +08:00
yike21 9079268ebb add validation for mcs
Signed-off-by: yike21 <yike21@qq.com>
2023-07-12 09:21:48 +08:00
jwcesign 068022db24 feat: Support CronFederatedHPA to scale worloads/FederatedHPA at specific time
Signed-off-by: jwcesign <jwcesign@gmail.com>
2023-07-03 20:25:02 +08:00
jwcesign 06960c22c0 feat: add validation for federatedhpa
Signed-off-by: jwcesign <jiangwei115@huawei.com>
2023-05-30 20:43:57 +08:00
Poor12 3a1464828a add hpa controller
Signed-off-by: Poor12 <shentiecheng@huawei.com>
2023-05-30 17:26:02 +08:00
RainbowMango 26ca04122c Update golangci-lint to v1.52.2
Signed-off-by: RainbowMango <qdurenhongcai@gmail.com>
2023-05-22 11:22:13 +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
changzhen c04fd6ad62 add validation for mci
Signed-off-by: changzhen <changzhen5@huawei.com>
2023-05-12 15:49:50 +08:00
Poor12 2c9d900c28 add some fields for GracefulEvictionTask
Signed-off-by: Poor12 <shentiecheng@huawei.com>
2023-04-24 14:59:27 +08:00
whitewindmills 26c787531e add placement helper
Signed-off-by: whitewindmills <jayfantasyhjh@gmail.com>
2023-04-01 16:45:57 +08:00
chaunceyjiang 7e2097f1f3 Optimize code directory structure.
Signed-off-by: chaunceyjiang <chaunceyjiang@gmail.com>
2023-03-30 11:49:16 +08:00
chaunceyjiang 8fd5d6dc23 feat: validates the fieldSelector of overridepolicy
Signed-off-by: chaunceyjiang <chaunceyjiang@gmail.com>
2023-02-22 22:03:52 +08:00
changzhen 42c2e3c643 add validation for orderedClusterAffinities
Signed-off-by: changzhen <changzhen5@huawei.com>
2023-02-18 15:45:44 +08:00
Poor12 b9e32de35d add schedulerName validation
Signed-off-by: Poor12 <shentiecheng@huawei.com>
2023-02-01 14:47:42 +08:00
RainbowMango aa620d68a3 Adopt validation changes
Signed-off-by: RainbowMango <qdurenhongcai@gmail.com>
2023-01-29 19:59:18 +08:00
hejunhua f229d97be9 fix that the InterpretDependency operation is absent in the validating webhook
Signed-off-by: hejunhua <jayfantasyhjh@gmail.com>

fix e2e problem

Signed-off-by: hejunhua <jayfantasyhjh@gmail.com>

fix test case

Signed-off-by: hejunhua <jayfantasyhjh@gmail.com>
2023-01-17 15:14:04 +08:00