Mohamed Awnallah
bd847422af
pkg/webhook: test Work
...
In this commit, we introduce unit tests for the `MutatingAdmission`
webhook specifically for the `Work` resource. The mutation webhook
tests include the following:
- Handles decode errors and denies admission when decoding fails.
- Provides full coverage of policy mutation, including setting default
and validating no unnecessary patches.
Signed-off-by: Mohamed Awnallah <mohamedmohey2352@gmail.com>
2024-09-12 07:28:03 +03:00
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
changzhen
6edf69debb
fix upgrade error with #5003
...
Signed-off-by: changzhen <changzhen5@huawei.com>
2024-05-30 18:07:07 +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
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
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
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
whitewindmills
89295f9606
Fix inspection errors
...
Signed-off-by: whitewindmills <jayfantasyhjh@gmail.com>
2023-05-17 17:06:27 +08:00
chaunceyjiang
7e2097f1f3
Optimize code directory structure.
...
Signed-off-by: chaunceyjiang <chaunceyjiang@gmail.com>
2023-03-30 11:49:16 +08:00
chaunceyjiang
83c91ac909
No need to propagate ttlsecondsafterfinished
...
Signed-off-by: chaunceyjiang <chaunceyjiang@gmail.com>
2022-08-29 11:22:15 +08:00
lonelyCZ
14010e289f
move prune to pkg/resourceinterpreter/defaultinterpreter
...
Signed-off-by: lonelyCZ <531187475@qq.com>
2021-12-21 16:54:22 +08:00
lonelyCZ
aa97d84c52
Move RemoveIrrelevantField to pkg/resourceinterpreter
...
Signed-off-by: lonelyCZ <531187475@qq.com>
2021-12-18 13:08:55 +08:00
changzhen
ac42c00cc4
upgrade k8s version to v1.20.11
...
Signed-off-by: changzhen <changzhen5@huawei.com>
2021-10-22 15:21:54 +08:00
jingxueli
63208e518a
remove work ownerReferences field
...
Signed-off-by: jingxueli <jingxueli@trip.com>
2021-10-11 14:26:08 +08:00
Garrybest
e9a7a2a022
clean up unstructured conversion
...
Signed-off-by: Garrybest <garrybest@foxmail.com>
2021-09-29 11:33:19 +08:00
lfbear
27bda0c530
remove the automatic generation secrets in ServiceAccount
...
Signed-off-by: lfbear <lfbear@gmail.com>
2021-08-19 16:35:18 +08:00
lihanbo
8e90d2c93f
fix bug of distributing job
...
Signed-off-by: lihanbo <lihanbo2@huawei.com>
2021-08-11 19:47:03 +08:00
phantooom
1a242b9671
webhook: when clusterIP=None do not remove clusterIP
...
Signed-off-by: phantooom <xiaorui.zou@gmail.com>
2021-07-15 10:41:56 +08:00
RainbowMango
538462e74d
Cleanup workload deletionTimestamp before write to work.
...
Signed-off-by: RainbowMango <renhongcai@huawei.com>
2021-03-26 11:29:52 +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