Commit Graph

241 Commits

Author SHA1 Message Date
karmada-bot 3d06bb84a3
Merge pull request #3000 from Fish-pro/fix/logupperstart
Uniform klog output starts with uppercase
2022-12-29 12:28:50 +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
Amir Alavi 09ca7f506f
default interpreter sub-tests to run in parallel
Signed-off-by: Amir Alavi <amiralavi7@gmail.com>
2022-12-27 22:52:19 -05:00
RainbowMango 14423bf5d8 Introduce generic hashset to simplify code
Signed-off-by: RainbowMango <qdurenhongcai@gmail.com>
2022-12-14 15:49:45 +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
karmada-bot 37cca1cd8d
Merge pull request #2928 from Fish-pro/fix/healthy
Fix misjudgment of deployment and statefuleset health status
2022-12-12 14:51:21 +08:00
chen zechun ec8f4c2a54 Fix Deployment and Statefulset health judgments
Signed-off-by: chen zechun <zechun.chen@daocloud.io>
2022-12-12 13:53:54 +08:00
yingjinhui 0f5e377d9f add kube lib for lua
Signed-off-by: yingjinhui <yingjinhui@didiglobal.com>
2022-12-08 22:14:04 +08:00
yingjinhui 45d85bb46c add metrics for pool
Signed-off-by: yingjinhui <yingjinhui@didiglobal.com>
2022-12-05 20:34:23 +08:00
RainbowMango f6dc267e46 Remove redundant pointer use of atomic types
Signed-off-by: RainbowMango <qdurenhongcai@gmail.com>
2022-12-01 18:26:19 +08:00
karmada-bot 0035d7a23b
Merge pull request #2885 from chaunceyjiang/atomic
go1.19: change some atomic.Value to atomic.Bool
2022-12-01 18:14:12 +08:00
yingjinhui b1e5bf093b fix ut: HasSynced error
Signed-off-by: yingjinhui <yingjinhui@didiglobal.com>
2022-12-01 14:54:52 +08:00
RainbowMango 873cd9f3e6 Nominate resource interpreter owners
Signed-off-by: RainbowMango <qdurenhongcai@gmail.com>
2022-11-30 18:03:13 +08:00
chaunceyjiang 05a235caa2 go1.19: change some atomic.Value to atomic.Bool
Signed-off-by: chaunceyjiang <chaunceyjiang@gmail.com>
2022-11-30 10:53:48 +08:00
karmada-bot d7b3a1cad4
Merge pull request #2864 from ikaven1024/pr-luavm
improve lua vm executing with pool
2022-11-28 18:07:10 +08:00
yingjinhui 47e7e8da8d improve lua vm executing with pool
Signed-off-by: yingjinhui <yingjinhui@didiglobal.com>
2022-11-28 15:45:12 +08:00
karmada-bot eb3763c201
Merge pull request #2824 from ikaven1024/interpret-ctl-execute
add execute mod for interpret command
2022-11-28 15:21:10 +08:00
yingjinhui 4a37e9ce91 add execute mode for karmadactl interpret subcommand
Signed-off-by: yingjinhui <yingjinhui@didiglobal.com>
2022-11-28 14:26:36 +08:00
stingshen d1e3977994 do not propagate finalizers to member cluster
Signed-off-by: stingshen <stingshen@126.com>
2022-11-26 17:24:44 +08:00
changzhen b1977be9e5 support users can define multiple resourceinterpretercustomization
Signed-off-by: changzhen <changzhen5@huawei.com>
2022-11-23 14:55:01 +08:00
karmada-bot 9605609168
Merge pull request #2750 from ikaven1024/inpreter-ctl
add interpret command
2022-11-22 09:54:05 +08:00
yingjinhui 81b2596ec1 add karmadactl interpret subcommand
Signed-off-by: yingjinhui <yingjinhui@didiglobal.com>
2022-11-21 20:18:35 +08:00
changzhen 2819df4347 add more log info for resource interpreter
Signed-off-by: changzhen <changzhen5@huawei.com>
2022-11-19 18:15:49 +08:00
karmada-bot ba084975d7
Merge pull request #2794 from jameszhangyukun/pr-interpret-interfaces
Resource Interpreter implements the interfaces
2022-11-16 17:43:59 +08:00
zhangyukun 04191b7dc6 Resource Interpreter implements the interfaces
Signed-off-by: zhangyukun <38148677+jameszhangyukun@users.noreply.github.com>
2022-11-16 10:55:16 +08:00
Poor12 83a45b2878 fix ut failure
Signed-off-by: Poor12 <shentiecheng@huawei.com>
2022-11-16 10:30:46 +08:00
karmada-bot e7c9cd0ccf
Merge pull request #2803 from ikaven1024/pr-improve-decodeValue
improve decodeValue for Lua
2022-11-15 12:10:04 +08:00
yingjinhui 90b7a4b096 improve decodeValue for Lua
Signed-off-by: yingjinhui <yingjinhui@didiglobal.com>
2022-11-14 20:47:26 +08:00
yingjinhui 5cc6d813ab fix error when convert empty lua table
Signed-off-by: yingjinhui <yingjinhui@didiglobal.com>
2022-11-14 17:30:05 +08:00
zhangyukun d4e5f04791 Resource Interpreter framework introduce Lua runtime layer
Signed-off-by: zhangyukun <38148677+jameszhangyukun@users.noreply.github.com>
2022-11-08 09:17:33 +08:00
zhangyukun a3c50e7e86 Resource Interpreter Framework cache and reorganize configurations
Signed-off-by: zhangyukun <38148677+jameszhangyukun@users.noreply.github.com>
2022-11-07 13:42:00 +08:00
karmada-bot 900a1bb043
Merge pull request #2651 from RainbowMango/pr_cleanup_customize_interpreter
cleanup kubeconfig parameter from customized interpreter
2022-10-20 09:08:15 +08:00
chaunceyjiang f865e5542c Put chaunceyjiang onto the controllers and resourceinterpreter reviewers list
Signed-off-by: chaunceyjiang <chaunceyjiang@gmail.com>
2022-10-19 09:47:04 +08:00
RainbowMango f5d3d013e6 remove kubeconfig parameter from customized interpreter
Signed-off-by: RainbowMango <qdurenhongcai@gmail.com>
2022-10-18 16:59:57 +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
karmada-bot f70fe8a0e6
Merge pull request #2415 from Garrybest/pr_pv
retain PersistentVolume fields
2022-08-26 09:27:54 +08:00
changzhen afca732825 reflect health status for recording the healthy state of the current resource running in the member cluster
Signed-off-by: changzhen <changzhen5@huawei.com>
2022-08-24 17:27:56 +08:00
Garrybest 7b7428fb9e retain PersistentVolume fields
Signed-off-by: Garrybest <garrybest@foxmail.com>
2022-08-23 18:04:33 +08:00
yusank d1617303a4 feat: sync cluster level resource status #2394
Signed-off-by: yusank <yusankurban@gmail.com>
2022-08-22 10:16:53 +08:00
zhuwint 989fb496fd add default interpreter for interpretHealth
Signed-off-by: zhuwint <zhuwentao15@huawei.com>
2022-08-18 11:48:09 +08:00
karmada-bot 431e06a684
Merge pull request #2329 from zhuwint/devhealthy
implement InterpretHealth for resource interpreter
2022-08-11 10:51:09 +08:00
zhuwint 90ddb6ae3c implement InterpretHealth for resource interpreter
Signed-off-by: zhuwint <zhuwentao15@huawei.com>
2022-08-11 09:19:50 +08:00
hanweisen 721d4e02bf propagate dependencies support propagate pvc
Signed-off-by: hanweisen <hanweisen_yewu@cmss.chinamobile.com>
2022-08-10 11:09:25 +08:00
RainbowMango 8461e4fb8c rename and re-organize the informermanager
Signed-off-by: RainbowMango <qdurenhongcai@gmail.com>
2022-08-09 17:24:23 +08:00
RainbowMango f73e7f2639 Rename interpreter operation health
Signed-off-by: RainbowMango <qdurenhongcai@gmail.com>
2022-08-08 19:56:18 +08:00
karmada-bot 7097347d86
Merge pull request #2311 from weilaaa/optimize_unstructured_convert_methods
optimize unstructured convert methods
2022-08-04 14:16:01 +08:00
weilaaa 4ed701069d optimize unstructured convert methods
Signed-off-by: weilaaa <weilanidaye@gmail.com>
2022-08-04 11:38:25 +08:00
karmada-bot 7c728707fc
Merge pull request #2035 from chaunceyjiang/auto_propagate_sa
Propagate dependencies add support propagate ServiceAccount
2022-08-02 19:50:59 +08:00
chaunceyjiang 0014bc2aed Propagate dependencies add support propagate ServiceAccount
Signed-off-by: chaunceyjiang <chaunceyjiang@gmail.com>
2022-08-02 15:55:31 +08:00
karmada-bot 26c559e1a2
Merge pull request #2252 from RainbowMango/pr_fix_health_assessment
Fixed Argo CD can not assess StatefulSet and DaemonSet health status issue
2022-07-27 11:51:52 +08:00
karmada-bot b8af2a70b4
Merge pull request #2249 from dddddai/status
Make sure to update resource status
2022-07-27 09:34:52 +08:00
dddddai 5743cebab0 make sure to update resource status
Signed-off-by: dddddai <dddwq@foxmail.com>
2022-07-26 11:18:31 +08:00
RainbowMango 6068b606ae Fixed Argo CD can not assess StatefulSet and DaemonSet health status
issue.

Signed-off-by: RainbowMango <qdurenhongcai@gmail.com>
2022-07-25 16:00:48 +08:00
Qianjin Xu 845e89d3a7 Fix: ArgoCD can not assess Deployment health status.
Signed-off-by: Qianjin Xu <xuqianjins@gmail.com>
2022-07-23 18:55:30 +08:00
karmada-bot 9c200843a4
Merge pull request #2146 from chaunceyjiang/issue_2173
sync pod failded and succeeded status
2022-07-16 19:09:39 +08:00
chaunceyjiang f38439a92d sync pod failded and succeeded status
Signed-off-by: chaunceyjiang <chaunceyjiang@gmail.com>
2022-07-15 09:56:52 +08:00
charlesQQ 519bcb0eed fix: fix applyPatch when patch and patchType is nil
Signed-off-by: charlesQQ <charles_ali@qq.com>
2022-07-12 10:30:38 +08:00
AllenZMC f7469ea3ec Fix nil problem in updateConfiguration
Signed-off-by: AllenZMC <zhongming.chang@daocloud.io>
2022-07-04 13:03:06 +08:00
chaunceyjiang 6ffe6f0967 sync status of pvc
Signed-off-by: chaunceyjiang <chaunceyjiang@gmail.com>
2022-07-01 10:59:02 +08:00
chaunceyjiang 21cb9839a5 Add a CronJob to the default dependencinterpreter
Signed-off-by: chaunceyjiang <chaunceyjiang@gmail.com>
2022-06-25 14:31:12 +08:00
bruce 738352611e sync status of pod
Signed-off-by: bruce <zhangyongxi_yewu@cmss.chinamobile.com>
2022-06-13 15:15:56 +08:00
Garrybest 3ad6f31a7b fix bugs of aggregating job status
Signed-off-by: Garrybest <garrybest@foxmail.com>
2022-06-10 17:47:00 +08:00
chaunceyjiang 7c283b124b log format
Signed-off-by: chaunceyjiang <chaunceyjiang@gmail.com>
2022-05-17 11:47:18 +08:00
yingjinhui 4518b0e497 Fix occasionally TestAggregateJobStatus time error
Signed-off-by: yingjinhui <yingjinhui@didiglobal.com>
2022-05-11 14:46:56 +08:00
karmada-bot 30ac5aaa37
Merge pull request #1702 from AllenZMC/improve_test
Correct the function name error in the comment
2022-05-02 10:00:19 +08:00
AllenZMC 01a2c8c988 Correct the function name error in the comment
Signed-off-by: AllenZMC <zhongming.chang@daocloud.io>
2022-05-01 15:14:11 +08:00
karmada-bot 40d61d2053
Merge pull request #1679 from XiShanYongYe-Chang/add-e2e-for-resource-status-collection
[E2E] add e2e for ingressStatus collection
2022-04-30 12:54:18 +08:00
changzhen 695c29fe61 add e2e for ingressStatus collection
Signed-off-by: changzhen <changzhen5@huawei.com>
2022-04-28 11:55:57 +08:00
AllenZMC c7e770c51d add ut for dependencies
Signed-off-by: AllenZMC <zhongming.chang@daocloud.io>
2022-04-27 16:42:45 +08:00
changzhen 0454944b63 add default reflectstatus implemetation
Signed-off-by: changzhen <changzhen5@huawei.com>
2022-04-24 16:32:03 +08:00
changzhen 0b985f4463 add default reflectstatus implementation with deployment kind
Signed-off-by: changzhen <changzhen5@huawei.com>
2022-04-24 11:19:42 +08:00
changzhen ecc8ddbb02 add ReflectStatus ResourceInterperter interface to grab workload status
Signed-off-by: changzhen <changzhen5@huawei.com>
2022-04-22 10:08:03 +08:00
AllenZMC f67684acf7 add ut for revisereplica
Signed-off-by: AllenZMC <zhongming.chang@daocloud.io>
2022-04-19 22:20:09 +08:00
karmada-bot 9083d06b7c
Merge pull request #1589 from Poor12/add-UT
add UT for aggregatestatus
2022-04-12 16:41:53 +08:00
Poor12 6c1b9f1765 add UT for aggregatestatus
Signed-off-by: Poor12 <shentiecheng@huawei.com>
2022-04-12 14:26:01 +08:00
karmada-bot b4be8be08d
Merge pull request #1586 from Poor12/fix-1544
enable aggregateStatusInterpreter for daemonSet and statefulSet
2022-04-08 11:27:48 +08:00
Poor12 257e36f422 fix 1544-add aggregateStatusInterpreter for daemonSet and statefulSet
Signed-off-by: Poor12 <shentiecheng@huawei.com>
2022-04-08 10:41:18 +08:00
chang.qiangqiang af3ffd6179 fix: bugfix response's patch and patchType is nil, controller panic
Signed-off-by: charlesQQ <charles_ali@qq.com>

fix: bugfix response's patch and patchType is nil, controller panic

Signed-off-by: charlesQQ <charles_ali@qq.com>
2022-04-06 19:05:15 +08:00
changzhen d711b72f45 tidy up lifted file
Signed-off-by: changzhen <changzhen5@huawei.com>
2022-03-15 10:42:32 +08:00
changzhen 3c028192ae don't retain service nodeport when update service
Signed-off-by: changzhen <changzhen5@huawei.com>
2022-03-08 09:37:26 +08:00
lihanbo 83efb14201 add default dependenciesInterpreter
Signed-off-by: lihanbo <lihanbo2@huawei.com>
2022-02-24 14:37:05 +08:00
RainbowMango dd7a3d4c6b Nominate resource interpreter framework owners
Signed-off-by: RainbowMango <qdurenhongcai@gmail.com>
2022-01-20 10:42:01 +08:00
karmada-bot abc767bfcd
Merge pull request #1277 from iawia002/unstructured
Clean up the code that converts Unstructured objects
2022-01-20 10:09:25 +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
changzhen fc7616e234 update HookEnabled interface with resourceinterpreter
Signed-off-by: changzhen <changzhen5@huawei.com>
2022-01-19 09:27:15 +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
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 aa97d84c52 Move RemoveIrrelevantField to pkg/resourceinterpreter
Signed-off-by: lonelyCZ <531187475@qq.com>
2021-12-18 13:08:55 +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