Coder Social home page Coder Social logo

Comments (16)

sbueringer avatar sbueringer commented on September 26, 2024 2

I think still okay to keep it open for now. I think two things would entirely solve it eventually

  • getting rid of the separate module or
  • attaching setup-envtest binaries to CR releases

the 2nd one is on my TODO list, just not much bandwidth atm

from controller-runtime.

lukas016 avatar lukas016 commented on September 26, 2024 1

@alvaroaleman can we discuss proper versioning of setup-env with separate tags for keep compatibility with go install or maybe other options?

from controller-runtime.

Yesphet avatar Yesphet commented on September 26, 2024 1

I've encountered the same issue, the method mentioned in this issue regarding tags is very simple and elegant. By synchronously creating the 'tools/setup-envtest/vX.Y.Z' tag, one can easily install it using go install sigs.k8s.io/controller-runtime/tools/[email protected]
Before such tags are created, a workaround can be utilized via go install sigs.k8s.io/controller-runtime/tools/setup-envtest@BRANCH. For instance go install sigs.k8s.io/controller-runtime/tools/[email protected]

from controller-runtime.

sbueringer avatar sbueringer commented on September 26, 2024 1

Hey folks,
we are currently experimenting a bit on setup-envtest because the envtest binaries are today hosted on the Google-owned kubebuilder repository.

Going forward we will start hosting the envtest binaries on controller-tools releases. We currently also plan to move setup-envtest to controller-tools as it fits better there. As part of that we will build & publish the setup-envtest binary on controller-tools releases in the future. This should also give proper versioning.

from controller-runtime.

sbueringer avatar sbueringer commented on September 26, 2024 1

@lukas016 There are no plans to break go install (just has to be run against controller-tools instead of controller-runtime).

from controller-runtime.

troy0820 avatar troy0820 commented on September 26, 2024

/kind support

from controller-runtime.

troy0820 avatar troy0820 commented on September 26, 2024

There is a work around for this as main isn't versioned along with tools/setupenv-tools.
#1670 (comment)

I'm not sure the impact of now bundling the new tag you request for setup-envtest to coincide with the controller-runtime's release process. I'm not aware of anything needing to change which why this needs to be hard to coordinate this with the current release process.

from controller-runtime.

lukas016 avatar lukas016 commented on September 26, 2024

@troy0820 can i ask you why it isn't store in separate repository? I checked https://github.com/kubernetes-sigs/controller-runtime/blob/main/tools/setup-envtest/go.sum and i don't see any dependencies to controller-runtime library. It can be easy manage this tool in separate repo and we can follow standard versioning for golang tools.

from controller-runtime.

troy0820 avatar troy0820 commented on September 26, 2024

@lukas016 I can't answer that question as I'm not a maintainer of controller-runtime. However, I believe this may have been a side effect of it having it's own go.mod and being embedded in this repository. There are ways to do multimodule version for releases and that may still be an option to satisfy this issue.

from controller-runtime.

lukas016 avatar lukas016 commented on September 26, 2024

@vincepri can ask you why setup-env is part of this repo and it doesn't have own repo? thx

from controller-runtime.

pmalek avatar pmalek commented on September 26, 2024

There is a work around for this as main isn't versioned along with tools/setupenv-tools. #1670 (comment)

I've also hit that issue and the workaround while working it's cumbersome to use. Ideally we'd be able to simply run go install sigs.k8s.io/controller-runtime/tools/setup-envtest@WHATEVER and have setup-envtest installed.

The introduction of tags in the issue description would be a rather cheap way of achieving that (compared to let's say moved the tool to a separate repo and paying the maintenance costs of that).

from controller-runtime.

lukas016 avatar lukas016 commented on September 26, 2024

@sbueringer could you pls keep compatibility with go install? I like this way.

from controller-runtime.

sbueringer avatar sbueringer commented on September 26, 2024

Potentially this issue will just get rid of the additional module: #2790

Then setup-envtest can be automatically installed with the CR version and there would be no need to move it to the controller-tools repo.

from controller-runtime.

troy0820 avatar troy0820 commented on September 26, 2024

Not sure if this issue still relevant or not with the changes that went in or with the workaround in the comment that I mentioned.

from controller-runtime.

sbueringer avatar sbueringer commented on September 26, 2024

The second one is now implemented.

Quoting my comment from another issue

Now starting with the v0.19 release setup-envtest binaries are available via release attachments (see e.g. https://github.com/kubernetes-sigs/controller-runtime/releases/tag/v0.19.0)
I would recommend using these binaries if:

  • a specific setup-envtest version is required
  • folks have trouble compiling the binary themselves
    #2744 (comment)

/close

from controller-runtime.

k8s-ci-robot avatar k8s-ci-robot commented on September 26, 2024

@sbueringer: Closing this issue.

In response to this:

The second one is now implemented.

Quoting my comment from another issue

Now starting with the v0.19 release setup-envtest binaries are available via release attachments (see e.g. https://github.com/kubernetes-sigs/controller-runtime/releases/tag/v0.19.0)
I would recommend using these binaries if:

  • a specific setup-envtest version is required
  • folks have trouble compiling the binary themselves
    #2744 (comment)

/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-sigs/prow repository.

from controller-runtime.

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.