-
Notifications
You must be signed in to change notification settings - Fork 3k
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
client-go 0.23.5 run blocked #1084
Comments
It helped reverting client-go to |
make sure you have matching client-go and other k8s.io/... module versions |
(and are using the version of k8s.io/kube-openapi indicated by your version of client-go) |
I suspect you are trying to use HEAD of k8s.io/kube-openapi with v0.23.5 of client-go |
client-go 0.23.5 uses this version of kube-openapi:
https://github.com/kubernetes/kube-openapi/commits/master/pkg/util/proto shows the history of that file, which changed the signature of that method from googleapis/gnostic → google/gnostic on 3/10/2022 the error you're getting indicates you were using a version of kube-openapi >= 3/10/2022 in your build |
If not, `go get -u` bumps it giving incompatible imports of - github.com/google/gnostic, and - github.com/googleapis/gnostic See kubernetes/client-go#1084
just add |
The problem came up again this week from this pr in I solved it today by updating
// go.mod
replace k8s.io/client-go => k8s.io/client-go v0.28.0-alpha.2 |
also met this error with client-go v0.27.0~v0.27.2 |
https://pkg.go.dev/k8s.io/kube-openapi/pkg/handler3?tab=versions
|
Using
go 1.18.1
orgo 1.17.9
andclient-go 0.23.5
The text was updated successfully, but these errors were encountered: