GithubHelp home page GithubHelp logo

Comments (12)

markns avatar markns commented on May 27, 2024 1

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.

idealhack avatar idealhack commented on May 27, 2024 1

@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.

thomastaylor312 avatar thomastaylor312 commented on May 27, 2024

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.

vijaykatam avatar vijaykatam commented on May 27, 2024

For dep the following override is needed based on kubernetes/client-go#298

[[override]]
  name = "github.com/ugorji/go"
  revision = "8c0409fcbb70099c748d71f714529204975f6c3f"

from api.

idealhack avatar idealhack commented on May 27, 2024

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.

thomastaylor312 avatar thomastaylor312 commented on May 27, 2024

@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.

gaurav-dalvi avatar gaurav-dalvi commented on May 27, 2024

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.

gaurav-dalvi avatar gaurav-dalvi commented on May 27, 2024

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.

thirteenmans avatar thirteenmans commented on May 27, 2024

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.

fejta-bot avatar fejta-bot commented on May 27, 2024

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.

fejta-bot avatar fejta-bot commented on May 27, 2024

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.

fejta-bot avatar fejta-bot commented on May 27, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.