Skip to content

Change scaffold since now is possible to ping envtest release #5679

@camilamacedo86

Description

@camilamacedo86

Historically, we need to use the release branch for ENVTEST (i.e https://github.com/kubernetes-sigs/kubebuilder/blob/master/testdata/project-v4/Makefile#L197-L200 and for context: kubernetes-sigs/controller-runtime#1670), now it seems that is possible to pin the binary:

$ go get -tool sigs.k8s.io/controller-runtime/tools/setup-envtest@v0.24.0And use it like:
$ go tool sigs.k8s.io/controller-runtime/tools/setup-envtest \
    use $(go list -m -f '{{.Version}}' k8s.io/api | sed 's/^v0\./1./')

Therefore, we need to change the default scaffolds as scripts used in the CI to use the pinned version

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/featureCategorizes issue or PR as related to a new feature.priority/important-soonMust be staffed and worked on either currently, or very soon, ideally in time for the next release.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions