Comments (7)
I also have an issue like this
# k8s.io/client-go/applyconfigurations/meta/v1
vendor/k8s.io/client-go/applyconfigurations/meta/v1/unstructured.go:64:38: cannot use doc (variable of type *"github.com/google/gnostic-models/openapiv2".Document) as *"github.com/google/gnostic/openapiv2".Document value in argument to proto.NewOpenAPIData
make: *** [build-bin] Error 1
go.mod
k8s.io/api v0.28.3
k8s.io/apimachinery v0.28.3
k8s.io/client-go v0.28.3
k8s.io/component-base v0.28.3
k8s.io/kube-openapi v0.0.0-20230717233707-2695361300d9 // indirect
Is there any workarounds?
from client-go.
Hi, I used client-go 0.28.3 with
openapi v0.0.0-20230717233707-2695361300d9
and it fix this problem
but then i have other problem that the swagger which is generated is corrupted
(different issue, and not sure it affects you as well)
For visibility, fields are removed and ref is added instead (our implementation used to dereference them)
"parameters": [
{
- "uniqueItems": true,
- "type": "string",
- "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.",
- "name": "continue",
- "in": "query"
+ "$ref": "#/parameters/continue-tuthsW5V"
},
from client-go.
reverted to k8s.io/kube-openapi v0.0.0-20230501164219-8b0f38b5fd1f // indirect
works in my env
from client-go.
reverted to
k8s.io/kube-openapi v0.0.0-20230501164219-8b0f38b5fd1f // indirect
works in my env
from client-go.
I am facing the same issue client-go v1.28.1, can anyone help me out ?
from client-go.
Using helm.sh/helm/v3 v3.13.0
and k8s.io/kubectl v0.28.3
should fix this issue.
go.mod
helm.sh/helm/v3 v3.13.0
k8s.io/api v0.28.3
k8s.io/apiextensions-apiserver v0.28.3
k8s.io/apimachinery v0.28.3
k8s.io/cli-runtime v0.28.3
k8s.io/client-go v0.28.3
sigs.k8s.io/controller-runtime v0.16.5
k8s.io/kubectl v0.28.3 // indirect
from client-go.
Upgrading old and new packages can also solve:
# go get github.com/google/gnostic && go get github.com/google/gnostic-models
go: upgraded github.com/google/gnostic v0.6.9 => v0.7.0
go: upgraded github.com/google/gnostic-models v0.6.8 => v0.6.9-0.20230804172637-c7be7c783f49
from client-go.
Related Issues (20)
- Memory leak in watcher HOT 4
- Add ability to manage labels in `resourcelock` HOT 1
- Annotate deprecated functions to allow linters to catch usage HOT 1
- The RetryWatcher received an 'Added' event for an old Pod. HOT 3
- How to cancel remote command execution? HOT 1
- why not use append instead for range
- apimachinery.ExtractInto generates diff HOT 1
- Watcher emits StatusInternalServerError when API server closes a watch gracefully with 200 HOT 3
- Why setting minWatchTimeout to only 5min
- Missing Kubernetes Labels for Nodes in GKE Cluster after Enabling Image Streaming Feature HOT 1
- support labeled events in EventRecorder interface
- Jsonpath impl does not support left match regex
- intermittent errors from client informer
- Server-Side Apply: ExtractPod should specify `UID`
- Why does the url contain %00 HOT 2
- v0.24.17 build error HOT 1
- FieldSelector doesn't appear to be filtering properly
- NewIndexerInformerWatcher result chan is not closed
- go list -m -versions k8s.io/client-go lists retracted versions HOT 2
- The compatibility-matrix needs to be updated to include versions 1.29 and 1.30 in README.md
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from client-go.