kubevela / kubevela-core-api

Core API package for KubeVela https://github.com/kubevela/kubevela

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

kubevela-core-api/test/main.go doesn't work

fuxp3 opened this issue · comments

commented

When trying to run kubevela-core-api/test/main.go.

Get

# github.com/oam-dev/cluster-gateway/pkg/apis/cluster/v1alpha1 \go\pkg\mod\github.com\oam-dev\cluster-gateway@v1.4.0\pkg\apis\cluster\v1alpha1\clustergateway_health.go:18:39: cannot use &ClusterGatewayHealth{} (value of type *ClusterGatewayHealth) as type "sigs.k8s.io/apiserver-runtime/pkg/builder/resource".ArbitrarySubResource in variable declaration: *ClusterGatewayHealth does not implement "sigs.k8s.io/apiserver-runtime/pkg/builder/resource".ArbitrarySubResource (missing Destroy method)

\go\pkg\mod\github.com\oam-dev\cluster-gateway@v1.4.0\pkg\apis\cluster\v1alpha1\clustergateway_proxy.go:52:30: cannot use &ClusterGatewayProxy{} (value of type *ClusterGatewayProxy) as type "k8s.io/apiserver/pkg/registry/rest".Storage in variable declaration: *ClusterGatewayProxy does not implement "k8s.io/apiserver/pkg/registry/rest".Storage (missing Destroy method)

\go\pkg\mod\github.com\oam-dev\cluster-gateway@v1.4.0\pkg\apis\cluster\v1alpha1\clustergateway_types.go:187:3: cannot use &ClusterGatewayProxy{} (value of type *ClusterGatewayProxy) as type "sigs.k8s.io/apiserver-runtime/pkg/builder/resource".ArbitrarySubResource in array or slice literal: *ClusterGatewayProxy does not implement "sigs.k8s.io/apiserver-runtime/pkg/builder/resource".ArbitrarySubResource (missing Destroy method)

\go\pkg\mod\github.com\oam-dev\cluster-gateway@v1.4.0\pkg\apis\cluster\v1alpha1\clustergateway_types.go:188:3: cannot use &ClusterGatewayHealth{} (value of type *ClusterGatewayHealth) as type "sigs.k8s.io/apiserver-runtime/pkg/builder/resource".ArbitrarySubResource in array or slice literal: *ClusterGatewayHealth does not implement "sigs.k8s.io/apiserver-runtime/pkg/builder/resource".ArbitrarySubResource (missing Destroy method)