diff options
| author | zhengxinwei <zhengxinwei@huawei.com> | 2023-08-02 15:46:11 +0800 |
|---|---|---|
| committer | zhengxinwei-f <zhengxinwei@huawei.com> | 2023-08-03 10:54:05 +0800 |
| commit | 17ae28b2d9126cf80b79fcc8fb90c720577142e8 (patch) | |
| tree | a9a351079b920e4732e3ce26c634dd9910607d53 | |
| parent | Merge pull request #4898 from Shelley-BaoYue/automated-cherry-pick-of-#4882-u... (diff) | |
| download | kubeedge-17ae28b2d9126cf80b79fcc8fb90c720577142e8.tar.gz | |
Fixed the cloudcore panic caused by the ClusterObjectSyncList item error
Signed-off-by: zhengxinwei <zhengxinwei@huawei.com>
| -rw-r--r-- | pkg/apis/reliablesyncs/v1alpha1/type.go | 2 | ||||
| -rw-r--r-- | pkg/apis/reliablesyncs/v1alpha1/zz_generated.deepcopy.go | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/pkg/apis/reliablesyncs/v1alpha1/type.go b/pkg/apis/reliablesyncs/v1alpha1/type.go index 01fac7b27..d894a4212 100644 --- a/pkg/apis/reliablesyncs/v1alpha1/type.go +++ b/pkg/apis/reliablesyncs/v1alpha1/type.go @@ -48,7 +48,7 @@ type ClusterObjectSyncList struct { metav1.ListMeta `json:"metadata,omitempty"` // List of ClusterObjectSync. - Items []ObjectSync `json:"items"` + Items []ClusterObjectSync `json:"items"` } // +genclient diff --git a/pkg/apis/reliablesyncs/v1alpha1/zz_generated.deepcopy.go b/pkg/apis/reliablesyncs/v1alpha1/zz_generated.deepcopy.go index b1b8845c6..6da2e1fa0 100644 --- a/pkg/apis/reliablesyncs/v1alpha1/zz_generated.deepcopy.go +++ b/pkg/apis/reliablesyncs/v1alpha1/zz_generated.deepcopy.go @@ -60,7 +60,7 @@ func (in *ClusterObjectSyncList) DeepCopyInto(out *ClusterObjectSyncList) { in.ListMeta.DeepCopyInto(&out.ListMeta) if in.Items != nil { in, out := &in.Items, &out.Items - *out = make([]ObjectSync, len(*in)) + *out = make([]ClusterObjectSync, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } |
