Comments (12)
This set of versions works for me:
# Kubernetes client
- package: k8s.io/client-go
version: v4.0.0
- package: k8s.io/apimachinery
version: release-1.7
- package: k8s.io/apiextensions-apiserver
version: release-1.7
- package: k8s.io/api
version: 4b8fc5be9b77d91bbb6525d18591c43699a2b4e5
... and by "works", I mean compiles
from api.
@thomastaylor312 Thank you! So a match (newer) version of client-go will do it. I’ve saw the maintainer released v5.0.0 10 hours ago.
Update: I'm using kubernetes-1.8.1
for client-go
, api
, apimachinery
now. Maybe use a same tag is better as they come from the same upstream.
from api.
If you are using dep
, you need to use an override like this:
[[override]]
name="k8s.io/api"
revision="4b8fc5be9b77d91bbb6525d18591c43699a2b4e5"
[[override]]
name = "k8s.io/apimachinery"
revision = "1fd2e63a9a370677308a42f24fd40c86438afddf"
from api.
For dep
the following override is needed based on kubernetes/client-go#298
[[override]]
name = "github.com/ugorji/go"
revision = "8c0409fcbb70099c748d71f714529204975f6c3f"
from api.
Hi folks, 4b8fc5be9b77d91bbb6525d18591c43699a2b4e5
compiles. But I need package "k8s.io/api/apps/v1beta2" (because I need to use the StatefulSet
), which was added after this version. How do I find a suitable version?
from api.
@idealhack The way I have done it is to use the version of client-go you need (5.0.0 in this case) and then look at its Godeps to see what versions they are using there. That generally works for me
from api.
I get following errors when i vendor in client-go, apimachinery and api of kubernetes-1.8.1
tag.
k8s.io/client-go/tools/clientcmd/overrides.go:122:3: invalid operation: flags (variable of type <company git>/<project>/vendor/github.com/spf13/pflag.FlagSet) has no field or method StringArrayVarP
/k8s.io/client-go/util/flowcontrol/throttle.go:59:2: Clock not declared by package ratelimit
```
```
k8s.io/client-go/util/flowcontrol/throttle.go:65:13: NewBucketWithRateAndClock not declared by package ratelimit
```
Any help would be appreciated.
from api.
client go uses spf13/pflag, our code does not use that. I dont see this spf13/pflag package in our Gopkg.toml file.
from api.
I had same issue. And I find this may depend on api and apimachinery version.
I use as below:
cd apimachinery && git checkout release-1.7
cd api && git checkout master
go build ./...
I will get the same issue.
Then I tried the following combination:
apimachinery: master && api: master
apimachinery: release-1.9 && api: master
apimachinery: release-1.8 && api: master
They are all can build successfully!
So, I suggest that try to use apimachinery version >= release-1.8 with api.
from api.
Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale
.
Stale issues rot after an additional 30d of inactivity and eventually close.
If this issue is safe to close now please do so with /close
.
Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/lifecycle stale
from api.
Stale issues rot after 30d of inactivity.
Mark the issue as fresh with /remove-lifecycle rotten
.
Rotten issues close after an additional 30d of inactivity.
If this issue is safe to close now please do so with /close
.
Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/lifecycle rotten
/remove-lifecycle stale
from api.
Rotten issues close after 30d of inactivity.
Reopen the issue with /reopen
.
Mark the issue as fresh with /remove-lifecycle rotten
.
Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/close
from api.
Related Issues (20)
- AdmissionResponse.Warnings do not show warning HOT 1
- DeploymentStatus readyReplicas docstring needs clarification. HOT 6
- What's the "system trust roots on the apiserver" HOT 4
- how to add 'NodeExpandSecretRef' to CSIPersistentVolumeSource? HOT 9
- Cannot print deployment HOT 5
- Can not specify pod name HOT 11
- v1.AdmissionRequest does not implement runtime.Object interface HOT 1
- Why not add methods such as validate deployment HOT 4
- kubectl explain node / oc explain node delivers wrong information HOT 9
- `PodFailurePolicyRule` fails to validate if `onPodConditions` is not set. HOT 5
- Reuse the IngressLoadBalancerStatus structure HOT 16
- The resourceVersion for the provided list is too old HOT 7
- Can't upgrade to k8s.io/api v0.28.0-alpha.4 HOT 3
- Provide non-development module versions
- Cannot uncordon using NodeSpec.Unschedulable HOT 4
- Deprecation of "github.com/gogo/protobuf" HOT 4
- Attribute `s` of `resource.Quantity` is empty HOT 1
- Remove developer comment from `LocalObjectReference` HOT 2
- The Golang version of version v0.30.0 specifced in the mod file is a precise verson number
- `Divisor` `resource.Quantity` `omitempty` doesn't make sense
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 api.