Giter Club home page Giter Club logo

Comments (6)

slintes avatar slintes commented on July 21, 2024

How did you get that version? I assume with the version pkg? Well, it works as designed: the version package was designed to report the KubeVirt version, and values are set during the build process via ldflags. The values you see are the default values.
So even when you update your build process to set those values, it would report the version of your own component, and not client-go's version. Not sure if we can/want to support the latter. @rmohr wdyt?

You can get KubeVirt's server version if that helps:

virtClient, _ := kubecli.GetKubevirtClient()
info, _ := virtClient.ServerVersion().Get()

from client-go.

rmohr avatar rmohr commented on July 21, 2024

Not sure if we can/want to support the latter.

Yep I don't think it makes much sense to support this.

@slintes can we exclude anything related to version from client-go, when we sync with staging?

from client-go.

slintes avatar slintes commented on July 21, 2024

can we exclude anything related to version from client-go, when we sync with staging?

I think just excluding something won't work (well, it wouldn't be nice at least imho). But we could refactor it to only keep the version.Info struct in client-go (it's used in kubecli for getting the server's version), and move everything else back to kubevirt.

from client-go.

ffromani avatar ffromani commented on July 21, 2024

@slintes yep, you basically got it. Looks like I misunderstood the purpose of the version package in the client-go module.
I'd like a way to report (= print in the logs) the release of client-go which my binary has compiled in; I can think of few workarounds which don't require any change, so we can close this issue.

from client-go.

slintes avatar slintes commented on July 21, 2024

if you have a workaround which we could easily add to client-go, let us know 🙂

/close

from client-go.

kubevirt-bot avatar kubevirt-bot commented on July 21, 2024

@slintes: Closing this issue.

In response to this:

if you have a workaround which we could easily add to client-go, let us know 🙂

/close

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

from client-go.

Related Issues (19)

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.