Skip to content

Commit

Permalink
Merge pull request #2985 from troy0820/troy0820/update-setup-envtest
Browse files Browse the repository at this point in the history
📖Update docs for setupenvtest
  • Loading branch information
k8s-ci-robot authored Oct 16, 2024
2 parents fe02d35 + 24ebfa7 commit 685db56
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tools/setup-envtest/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,17 @@ This is a small tool that manages binaries for envtest. It can be used to
download new binaries, list currently installed and available ones, and
clean up versions.

To use it, just go-install it with Golang 1.22+ (it's a separate, self-contained
To use it, just go-install it with Golang 1.23+ (it's a separate, self-contained
module):

```shell
go install sigs.k8s.io/controller-runtime/tools/setup-envtest@latest
```

If you are using Golang 1.20 or 1.21, use the `release-0.17` branch instead:
If you are using Golang 1.22, use the `release-0.18` branch instead:

```shell
go install sigs.k8s.io/controller-runtime/tools/setup-envtest@release-0.17
go install sigs.k8s.io/controller-runtime/tools/setup-envtest@release-0.18
```

For full documentation, run it with the `--help` flag, but here are some
Expand Down Expand Up @@ -47,7 +47,7 @@ setup-envtest use -i --use-env
# sideload a pre-downloaded tarball as Kubernetes 1.16.2 into our store
setup-envtest sideload 1.16.2 < downloaded-envtest.tar.gz

# Per default envtest binaries are downloaded from:
# Per default envtest binaries are downloaded from:
# https://raw.githubusercontent.com/kubernetes-sigs/controller-tools/master/envtest-releases.yaml
# To download from a custom index use the following:
setup-envtest use --index https://custom.com/envtest-releases.yaml
Expand Down

0 comments on commit 685db56

Please sign in to comment.