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

/go/pkg/mod/k8s.io/[email protected]/applyconfigurations/meta/v1/unstructured.go:64:38: cannot use doc (variable of type *"github.com/google/gnostic/openapiv2".Document) #1286

Closed
skhaz opened this issue Aug 4, 2023 · 5 comments

Comments

@skhaz
Copy link

skhaz commented Aug 4, 2023

I just updated an application that uses client-go, which was working before. After the library upgrade, I encountered the error below. Does anyone know what the workaround is?

> [app stage-0 7/7] RUN go build -o app:                                                                                                                                      
15.33 # k8s.io/client-go/applyconfigurations/meta/v1
15.33 /go/pkg/mod/k8s.io/[email protected]/applyconfigurations/meta/v1/unstructured.go:64:38: cannot use doc (variable of type *"github.com/google/gnostic/openapiv2".Document) as *"github.com/google/gnostic-models/openapiv2".Document value in argument to proto.NewOpenAPIData
@mjnovice
Copy link

mjnovice commented Aug 4, 2023

+1

@mjnovice
Copy link

mjnovice commented Aug 4, 2023

seems duplicate #1269

@mjnovice
Copy link

mjnovice commented Aug 4, 2023

#1075 (comment)

@liggitt
Copy link
Member

liggitt commented Aug 4, 2023

#1075 (comment) Is the recommendation… switch to using the gnostic version referenced by client-go v0.27.4

Only the v0.28.x client-go stream (ETA August 15th) works with latest gnostic definitions

@liggitt liggitt closed this as completed Aug 4, 2023
@shashidhar-patil
Copy link

Facing it in k8s.io/client-go v0.28.1
# sigs.k8s.io/kustomize/kyaml/openapi /root/go/pkg/mod/sigs.k8s.io/kustomize/[email protected]/openapi/openapi.go:683:33: cannot use doc (variable of type *"github.com/google/gnostic/openapiv2".Document) as *"github.com/google/gnostic-models/openapiv2".Document value in argument to swagger.FromGnostic make: *** [Makefile:55: vet] Error 1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants