Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

incompatible version #2243

Open
web3creator opened this issue May 30, 2024 · 0 comments
Open

incompatible version #2243

web3creator opened this issue May 30, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@web3creator
Copy link

Current Behavior

func (m *MarknpClient) CreateApisixRouteIngress(ctx context.Context, namespace string, apisixRoute *apisixRouteV2.ApisixRoute) (*apisixRouteV2.ApisixRoute, error) {
client := versioned.New(m.Clientset.RESTClient())
return client.ApisixV2().ApisixRoutes(namespace).Create(ctx, apisixRoute, metav1.CreateOptions{})
}

Expected Behavior

Error Logs

v1.CreateOptions is not suitable for converting to "meta.k8s.io/v1" in scheme "pkg/runtime/scheme.go:100"

Steps to Reproduce

Environment

我的go,mod 依赖
require (
github.com/apache/apisix-ingress-controller v1.8.2
github.com/gin-gonic/gin v1.9.1
github.com/swaggo/files v1.0.1
github.com/swaggo/gin-swagger v1.6.0
github.com/swaggo/swag v1.16.3
k8s.io/api v0.30.0
k8s.io/apimachinery v0.30.0
k8s.io/client-go v0.30.0
sigs.k8s.io/gateway-api v1.1.0
)

@juzhiyuan juzhiyuan changed the title 版本不匹配 incompatible version Jun 16, 2024
@juzhiyuan juzhiyuan added the bug Something isn't working label Jun 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants