From 0d816b9a4068917537ae8224602dceb1895b0375 Mon Sep 17 00:00:00 2001 From: Bob Date: Thu, 25 Apr 2024 14:30:24 +0800 Subject: [PATCH] fix: update yaml name to latest Signed-off-by: Bob Signed-off-by: Bob --- pkg/build/edgeimage/internal/kube/builder_docker.go | 4 ++-- pkg/cluster/internal/create/actions/kubeedge/kubeedge.go | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/pkg/build/edgeimage/internal/kube/builder_docker.go b/pkg/build/edgeimage/internal/kube/builder_docker.go index 74425a4..9151985 100644 --- a/pkg/build/edgeimage/internal/kube/builder_docker.go +++ b/pkg/build/edgeimage/internal/kube/builder_docker.go @@ -113,8 +113,8 @@ func (b *dockerBuilder) Build() (kube.Bits, error) { filepath.Join(filepath.Join(binDir, "edgecore")), // CRDs required by KubeEdge - filepath.Join(crdDir, "devices", "devices_v1alpha2_device.yaml"), - filepath.Join(crdDir, "devices", "devices_v1alpha2_devicemodel.yaml"), + filepath.Join(crdDir, "devices", "devices_v1beta1_device.yaml"), + filepath.Join(crdDir, "devices", "devices_v1beta1_devicemodel.yaml"), filepath.Join(crdDir, "reliablesyncs", "cluster_objectsync_v1alpha1.yaml"), filepath.Join(crdDir, "reliablesyncs", "objectsync_v1alpha1.yaml"), filepath.Join(crdDir, "router", "router_v1_rule.yaml"), diff --git a/pkg/cluster/internal/create/actions/kubeedge/kubeedge.go b/pkg/cluster/internal/create/actions/kubeedge/kubeedge.go index 1579f8f..919e052 100644 --- a/pkg/cluster/internal/create/actions/kubeedge/kubeedge.go +++ b/pkg/cluster/internal/create/actions/kubeedge/kubeedge.go @@ -200,8 +200,8 @@ func (a *Action) startCloudcore(ctx *actions.ActionContext, node nodes.Node) err // create CRDs crds := []string{ - "devices_v1alpha2_device.yaml", - "devices_v1alpha2_devicemodel.yaml", + "devices_v1beta1_device.yaml", + "devices_v1beta1_devicemodel.yaml", "cluster_objectsync_v1alpha1.yaml", "objectsync_v1alpha1.yaml", "router_v1_rule.yaml",