Skip to content

Commit 53c7d3f

Browse files
authored
Add instructions for setting up envtest and checking go version (#2504)
Signed-off-by: Frederic Giloux <[email protected]>
1 parent 285a535 commit 53c7d3f

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

DEVELOPMENT.md

+7-2
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@
2727

2828
This project uses the built-in testing support for golang.
2929

30+
Envtest is also used and needs to be set up. Follow [controller-runtime instructions] and set `KUBEBUILDER_ASSETS` environment variable to point to the installation directory, for instance: `/usr/local/kubebuilder/bin`.
31+
3032
To run the tests for all go packages outside of the vendor directory, run:
3133
```sh
3234
$ make test
@@ -46,11 +48,14 @@ To run a specific e2e test locally:
4648
$ make e2e-local TEST=TestCreateInstallPlanManualApproval
4749
```
4850

51+
[controller-runtime instructions]: https://pkg.go.dev/sigs.k8s.io/controller-runtime/tools/setup-envtest#section-readme
52+
4953
#### Building
5054

51-
Ensure your version of go is up to date; check that you're running v1.9 with the
52-
command:
55+
Ensure your version of go is up to date; check that you're running the same version as in go.mod with the
56+
commands:
5357
```sh
58+
$ head go.mod
5459
$ go version
5560
```
5661

0 commit comments

Comments
 (0)