Commit graph

81 commits

Author SHA1 Message Date
Haojie Zhang
65abb4d12d feat: split Device CRD into Device CRD and DeviceStatus CRD
Signed-off-by: Haojie Zhang <hjzhang6848@163.com>
2025-12-22 17:01:31 +00:00
wbc6080
e8ec9a719b Fix device update logic
Signed-off-by: wbc6080 <wangbincheng4@huawei.com>
2025-05-17 15:49:06 +08:00
WillardHu
9c9f0c9d83 Fixed the golangci config and some code validation issues
Signed-off-by: WillardHu <wei.hu@daocloud.io>
2025-01-23 11:03:03 +08:00
wbc6080
033557769e Fix the reference to api/client after completing the migration
Signed-off-by: wbc6080 <wangbincheng4@huawei.com>
2024-08-10 16:50:02 +08:00
wbc6080
990dde0972 Migrate client and openapi to the api directory and adjust dependency references
Signed-off-by: wbc6080 <wangbincheng4@huawei.com>
2024-08-09 15:02:59 +08:00
wbc6080
1a7f933e58 Modify the way each component in kubeedge refers to API dependencies and change openapi and swagger after migrating
Signed-off-by: wbc6080 <wangbincheng4@huawei.com>
2024-08-08 15:28:16 +08:00
luomengY
cfb03418dc Fix the status reporting of device to avoid issues defined by twin.
Signed-off-by: luomengY <2938893385@qq.com>
2024-03-28 13:14:23 +08:00
wbc6080
d01a767ea2 update dmi server to get namespace
Signed-off-by: wbc6080 <wangbincheng4@huawei.com>
2024-01-18 11:27:34 +08:00
wbc6080
161da301c8 change the function to generate resource id
Signed-off-by: wbc6080 <wangbincheng4@huawei.com>
2024-01-09 15:34:45 +08:00
wbc6080
7ff72309d1 fix namespace problem in cloudcore
Signed-off-by: wbc6080 <wangbincheng4@huawei.com>
2024-01-08 14:20:40 +08:00
luomengY
9bfed98340 Add a retry mechanism to solve situations where the device is deployed before the devicemodel.
Signed-off-by: luomengY <2938893385@qq.com>
2023-12-21 19:22:48 +08:00
cl2017
194023c05d bugfix: device model sync
Signed-off-by: cl2017 <chenlin.liu@daocloud.io>
2023-10-13 10:25:57 +08:00
cl2017
cd75cda7d8 device crd v1beta1 cloud
Signed-off-by: cl2017 <chenlin.liu@daocloud.io>
2023-09-22 13:00:03 +08:00
Zhizhen He
10e5aeb1ba
fix typo and update comments
Signed-off-by: Zhizhen He <hezhizhen.yi@gmail.com>
2023-08-25 20:42:43 +08:00
jiawei
3f1112022c fix ci
Signed-off-by: jiawei <jiawei.liu@daocloud.io>

Signed-off-by: jiawei <jiawei.liu@daocloud.io>
2022-10-13 10:35:07 +08:00
jiawei
a37f175ab2 No need for repeated operations DeviceModel Store
Signed-off-by: jiawei <jiawei.liu@daocloud.io>
2022-10-13 09:37:52 +08:00
RyanZhaoXB
7c6ae5255a add dmi api, proto, services, server and dmi module in devicetwin
fix device twin UT and review comment.
update device model crd.
add mutex lock for MapperRegister
add rate limiter for DMI server

make dmiclients as a map and generate a new client when a new mapper registers

update api.pb.go

modify dmi client

move deviceList to the server struct

make DMIcache

mv edge/pkg/apis/dmi to pkg/apis/dmi

add some mutex and fix some comment

optimized the v1alpha1 of DMI proto and add some comments

update api.pb.go

generate crd

fix review comments

Signed-off-by: RyanZhaoXB <zhaoran11@huawei.com>
2022-09-19 17:50:53 +08:00
TianTianBigWang
3f81f24e68 distribute device model to meta storage
Signed-off-by: TianTianBigWang <zilong.wang@daocloud.io>
2022-09-19 17:07:52 +08:00
x00425595
74e4720952 refactor message layer
Signed-off-by: wackxu <xushiwei5@huawei.com>
2022-03-29 16:51:32 +08:00
KubeEdge Bot
1c781ef0ce
Merge pull request #3683 from gy95/move_apis
Move apis and client under kubeedge/cloud/pkg/ to kubeedge/pkg/
2022-03-14 15:34:55 +08:00
gy95
d7e52d6c39 Move apis and client under kubeedge/cloud/pkg/ to kubeedge/pkg/
Signed-off-by: gy95 <guoyao17@huawei.com>
2022-03-11 16:11:19 +08:00
RyanZhaoXB
767961f96d remove unused constant
Signed-off-by: RyanZhaoXB <zhaor_thu@163.com>
2022-03-11 10:46:13 +08:00
KubeEdge Bot
ca223b6af5
Merge pull request #3330 from jidalong/device1to2
delete useless device-v1alpha1 code while device is update to v1alpha2
2021-11-22 16:02:22 +08:00
jidalong
5af4e7224d delete useless device v1alpha1 code while device is update to v1alpha2
Signed-off-by: jidalong <jidalong@cmss.chinamobile.com>
2021-11-22 15:03:45 +08:00
jidalong
db2a1afd8a remove unused member variable of device DownstreamController
Signed-off-by: jidalong <jidalong@cmss.chinamobile.com>
2021-11-18 19:16:21 +08:00
TianTianBigWang
5b2782f926 Fix device does not exist in the downstream controller after it is added
Signed-off-by: TianTianBigWang <zilong.wang@daocloud.io>
2021-10-29 17:39:15 +08:00
Wayne Chan
f785c6fdc0 devicecontroller: fix dataProperties misplaced
add data section in device-profile-config-<edgenode> configmap, then
mappers-go can parse dataProperties successfully

Signed-off-by: Wayne Chan <waynechan76@gmail.com>
2021-08-31 19:01:59 +08:00
huangpengtao
93b0ff2e12 to avoid update cm after created a new cm
to check "not found" error

Signed-off-by: huangpengtao <huangpengtao@kingsoft.com>
2021-06-17 21:58:29 +08:00
Iceber Gu
b8d40ec720
cloud: fix the warning log for printing object type
Signed-off-by: Iceber Gu <wei.cai-nat@daocloud.io>
2021-03-21 10:23:11 +08:00
guanzuoyu
862f7a61f2 remove cache when configmap not found from k8s
Signed-off-by: guanzuoyu <guanzuoyudev@gmail.com>
2021-02-23 11:08:08 +08:00
gy95
f371e87eee delete useless code
Signed-off-by: gy95 <guoyao17@huawei.com>
2021-01-28 20:58:46 +08:00
xufei 00416946
f83607a053 refactor k8s and crd client in devicecontroller
Signed-off-by: fisherxu <xufei40@huawei.com>
2021-01-15 11:59:47 +08:00
KubeEdge Bot
3cf8f0ed1a
Merge pull request #2360 from wuqihui0317/updateDeviceBug
fix a bug of device update
2020-11-25 10:02:35 +08:00
Xiang Dai
3a6666adb1 Unify use google uuid library
Signed-off-by: Xiang Dai <long0dai@foxmail.com>
2020-11-24 15:40:59 +08:00
wuqihui0317
080e24aaba fix a bug of device update 2020-11-24 14:19:02 +08:00
GsssC
f01eeff7f4 upgrade klog@0.4.0 to klog/v2@2.2.0 2020-11-20 17:31:57 +08:00
wuqihui0317
8f11965248 fix a bug of device data type 2020-10-30 10:56:00 +08:00
luogangyi
b326a82acf fix missing protocol common config update 2020-10-21 14:00:27 +08:00
KubeEdge Bot
ac9c504caf
Merge pull request #1721 from daixiang0/enable-errcheck
Lint: enable errcheck linter
2020-09-15 19:49:26 +08:00
ZYZ
af25d7f087 put all module name and module group in one place 2020-09-10 09:52:30 +08:00
Xiang Dai
d970c9f958 Lint: fix errcheck issue
Signed-off-by: Xiang Dai <long0dai@foxmail.com>
2020-09-08 15:58:48 +08:00
Yin Ding
c0ca6b91c0 Lint: fix formats etc. 2020-08-03 09:42:12 -07:00
Rio Zhu
a9e0c13290 Update upstream dependency to K8s 1.18.5
Co-authored-by: Yin Ding <dingyin@gmail.com>
Co-authored-by: Rio Zhu <32083634+zzxgzgz@users.noreply.github.com>

* Updated k8s to  1.18.5 and modified code around API changes.

* Updated kube-scheduler dependency.

* added filed ExperimentalTopologyManagerPolicy to matched the upgraded k8s

* Changed some dependencies' versions to x.18.0

* Added function to start cpu manager in clcm.
2020-08-03 09:42:11 -07:00
KubeEdge Bot
bc8778dd35
Merge pull request #2014 from luogangyi/extend-property-types
extend property types
2020-08-03 10:04:06 +08:00
luogangyi
41866b1885 extend property types 2020-08-02 17:19:29 +08:00
dddddai
dd4197be03 Give the capacity of slice and map 2020-07-31 12:03:24 +08:00
KubeEdge Bot
ec23878a13
Merge pull request #1790 from luogangyi/implement-device-management-enhance
Implement device management enhance
2020-07-24 17:05:05 +08:00
Xiang Dai
1cb6e188a9 Fix device configMap can not be deleted
Signed-off-by: Xiang Dai <long0dai@foxmail.com>
2020-07-21 15:11:17 +08:00
luogangyi
069ef29521 enhance on device protocol config 2020-07-20 14:49:17 +08:00
luogangyi
2379497dbd move data section from top level into Spec section 2020-07-19 13:18:32 +08:00