Commit Graph

61 Commits

Author SHA1 Message Date
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
karmada-bot 0330535ed8
Merge pull request #3014 from chaunceyjiang/ValidateReplicaScheduling
fix: Validate replicaSchedulingType and replicaDivisionPreference
2023-01-09 15:43:02 +08:00
chaunceyjiang 7a3207c8ee fix: set the default value of replicaSchedulengType
Signed-off-by: chaunceyjiang <chaunceyjiang@gmail.com>
2023-01-09 14:37:20 +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
karmada-bot 0131bffaae
Merge pull request #2879 from carlory/validate
move validation funcs into util/validation
2022-12-14 10:10:23 +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
carlory 1b33ef882b move validation funcs into util/validation
Signed-off-by: carlory <baofa.fan@daocloud.io>
2022-11-29 10:30:17 +08:00
chaunceyjiang 0c16431a51 Implement ResourceInterpreterCustomization ValidatingAdmission
Signed-off-by: chaunceyjiang <chaunceyjiang@gmail.com>
2022-11-28 18:30:43 +08:00
carlory 990c079eb6 fix setting resource selector default namespace for policy
Signed-off-by: carlory <baofa.fan@daocloud.io>
2022-11-26 19:09:46 +08:00
karmada-bot b9612c2e83
Merge pull request #2765 from Poor12/fix-io-readall
Add limitReader to io.ReadAll
2022-11-10 11:23:20 +08:00
changzhen 5a767f4f21 allow to update the resourceSelector of PropagationPolicy/ClusterPropagationPolicy
Signed-off-by: changzhen <changzhen5@huawei.com>
2022-11-09 16:40:57 +08:00
Poor12 64eff43fdb Add limitReader to io.ReadAll
Signed-off-by: Poor12 <shentiecheng@huawei.com>
2022-11-09 12:19:13 +08:00
chaunceyjiang 1a6b35649c replace the ioutil by the os and io
Signed-off-by: chaunceyjiang <chaunceyjiang@gmail.com>
2022-11-01 14:15:26 +08:00
karmada-bot 41615f8783
Merge pull request #2294 from chaunceyjiang/ttl
No need to propagate ttlsecondsafterfinished
2022-08-29 12:34:57 +08:00
chaunceyjiang 83c91ac909 No need to propagate ttlsecondsafterfinished
Signed-off-by: chaunceyjiang <chaunceyjiang@gmail.com>
2022-08-29 11:22:15 +08:00
zhuwint 90ddb6ae3c implement InterpretHealth for resource interpreter
Signed-off-by: zhuwint <zhuwentao15@huawei.com>
2022-08-11 09:19:50 +08:00
Garrybest c5b35bd199 add default tolerations for pp and cpp
Signed-off-by: Garrybest <garrybest@foxmail.com>
2022-08-02 17:20:25 +08:00
changzhen c5178b8ba9 add InterpreterOperationInterpretStatus for supportedInterpreterOperation
Signed-off-by: changzhen <changzhen5@huawei.com>
2022-05-24 19:21:17 +08:00
changzhen 85ab6c7699 add ut for federatedresourcequota validating
Signed-off-by: changzhen <changzhen5@huawei.com>
2022-03-16 14:37:13 +08:00
changzhen d711b72f45 tidy up lifted file
Signed-off-by: changzhen <changzhen5@huawei.com>
2022-03-15 10:42:32 +08:00
changzhen e7b4436dae add validation for federatedResourceQuota create/update
Signed-off-by: changzhen <changzhen5@huawei.com>
2022-03-03 19:44:48 +08:00
Xinzhao Xu 2f55e6c583 Implementing the AggregateStatus hook
Signed-off-by: Xinzhao Xu <z2d@jifangcheng.com>
2022-01-18 20:35:26 +08:00
carlory f697c03c74 add validation for cluster api and remove cluster validating webhook
Signed-off-by: carlory <baofa.fan@daocloud.io>
2022-01-14 12:08:43 +08:00
Xinzhao Xu a895c38005 Implementing the ReviseReplica hook
Signed-off-by: Xinzhao Xu <z2d@jifangcheng.com>
2021-12-24 16:02:25 +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 f99d1e8a0f Implementing karmada-webhook of validating ClusterOverridePolicy
Signed-off-by: lonelyCZ <531187475@qq.com>
2021-12-20 13:32:52 +08:00
karmada-bot a916dda8d2
Merge pull request #1107 from Shike-Ada/pr-commit
update kube-apiserver and kube-controller-manager default version
2021-12-20 09:41:26 +08:00
karmada-bot c69e955bfb
Merge pull request #1124 from lonelyCZ/override-validating
Implementing karmada-webhook of validating OverridePolicy
2021-12-20 09:07:26 +08:00
changzhen 586cd9d407 update discoveryv1beta1 to discoveryv1 for endpointslice
Signed-off-by: changzhen <changzhen5@huawei.com>
Signed-off-by: Shike-Ada <1073457937@qq.com>
2021-12-18 17:19:21 +08:00
lonelyCZ aa97d84c52 Move RemoveIrrelevantField to pkg/resourceinterpreter
Signed-off-by: lonelyCZ <531187475@qq.com>
2021-12-18 13:08:55 +08:00
lonelyCZ b8d46597a9 Implementing karmada-webhook of validating OverridePolicy
Signed-off-by: lonelyCZ <531187475@qq.com>
2021-12-18 12:42:22 +08:00
changzhen 7224234a74 Update resourece interpreter pkg/file name and variable/parameter/comment naming
Signed-off-by: changzhen <changzhen5@huawei.com>
2021-11-20 17:48:00 +08:00
Kevin Wang f8af0363f6 Update resource interpreter api (aka. explorewebhook)
Signed-off-by: Kevin Wang <kevinwzf0126@gmail.com>
2021-11-20 14:59:52 +08:00
guoyao 69f990bf56 add unit test for webhook validation
Signed-off-by: guoyao <1015105054@qq.com>

Signed-off-by: guoyao <1015105054@qq.com>
2021-11-19 15:11:09 +08:00
changzhen fb39ed5aa0 adapt ObservedObject adding in resource explore webhook
Signed-off-by: changzhen <changzhen5@huawei.com>
2021-11-18 12:25:03 +08:00
changzhen 0acd626d1b add hook handler interface
Signed-off-by: changzhen <changzhen5@huawei.com>
2021-11-16 17:51:20 +08:00
RainbowMango dc142d22eb Define webhook rules by ourself
Signed-off-by: RainbowMango <qdurenhongcai@gmail.com>
2021-11-13 20:09:07 +08:00
changzhen c4a6c03c99 add the validation for ResourceExploringWebhookConfiguration creation
Signed-off-by: changzhen <changzhen5@huawei.com>
2021-11-11 15:04:09 +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
learner0810 3ffa9dc95f fix/log-severity
Signed-off-by: learner0810 <zhongjun.li@daocloud.io>
2021-10-02 20:26:53 +08:00
Garrybest e9a7a2a022 clean up unstructured conversion
Signed-off-by: Garrybest <garrybest@foxmail.com>
2021-09-29 11:33:19 +08:00
esto a6165e47f9 update import-aliases
Signed-off-by: esto <1291156784@qq.com>
2021-09-15 15:13:14 +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
changzhen 1e6c21cc28 mutate policy's ResourceSelectors in webhook
Signed-off-by: changzhen <changzhen5@huawei.com>
2021-07-09 11:02:23 +08:00
lihanbo 7e1e7b9726 add e2e test for scheduling base on cluster provider/region
Signed-off-by: lihanbo <lihanbo2@huawei.com>
2021-05-25 09:11:57 +08:00
lihanbo b565cc0caa support schedule based on cluster provider/region/zone
Signed-off-by: lihanbo <lihanbo2@huawei.com>
2021-05-25 09:11:57 +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