Mohamed Awnallah
466634ac3d
pkg/webhook: test ResourceInterpreterCustomization
...
In this commit, we introduce unit tests for `ValidationAdmission`
webhook for the `ResourceInterpreterCustomization` resource. The
tests include:
- Tests how the webhook responds when decoding the request object fails.
- Tests how the webhook responds when it fails to retrieve list of objects from a namespace.
- Ensures that invalid `ResourceInterpreterCustomization` spec denies the admission.
- Confirms that valid `ResourceInterpreterCustomization` spec are allowed through without errors.
Signed-off-by: Mohamed Awnallah <mohamedmohey2352@gmail.com>
2024-09-16 16:17:13 +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
chaosi-zju
3c731e5d08
fix demo for dependencyInterpretation
...
Signed-off-by: chaosi-zju <chaosi@zju.edu.cn>
2024-06-04 11:50:30 +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
changzhen
734cf3ab8f
fix depndencies lua scrpit bug
...
Signed-off-by: changzhen <changzhen5@huawei.com>
2023-09-05 17:36:24 +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
chaunceyjiang
7e2097f1f3
Optimize code directory structure.
...
Signed-off-by: chaunceyjiang <chaunceyjiang@gmail.com>
2023-03-30 11:49:16 +08:00
changzhen
5ed2100ee1
support multiple dependencyInterpreter lua script for one gvk
...
Signed-off-by: changzhen <changzhen5@huawei.com>
2022-12-13 10:30:33 +08:00
chaunceyjiang
0c16431a51
Implement ResourceInterpreterCustomization ValidatingAdmission
...
Signed-off-by: chaunceyjiang <chaunceyjiang@gmail.com>
2022-11-28 18:30:43 +08:00