Skip to content
This repository was archived by the owner on Apr 10, 2024. It is now read-only.

Commit ae25a8d

Browse files
committed
docs
1 parent 68623c1 commit ae25a8d

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@ class JUnitExtensionTest {
4141

4242
### Download binaries
4343

44-
[`setup-envtest`](https://pkg.go.dev/sigs.k8s.io/controller-runtime/tools/setup-envtest#section-readme) can be used
45-
to download binaries.
44+
Binaries are downloaded automatically under $JENVTEST_DIR/k8s/[target-platform-and-version].
4645

47-
by executing `setup-envtest use --bin-dir ~/.jenvtest` will download the latest required binaries to the default
48-
directory.
46+
Also [`setup-envtest`](https://pkg.go.dev/sigs.k8s.io/controller-runtime/tools/setup-envtest#section-readme) can be used
47+
to download binaries manually. By executing `setup-envtest use --bin-dir ~/.jenvtest` will download the latest required
48+
binaries to the default directory.

src/main/java/com/csviri/jenvtest/APIServerConfig.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
public class APIServerConfig {
77

8-
public static final String CONFIG_ROOT_ENV_VAR = "JENVTEST_DIR";
8+
public static final String JENVTEST_DIR_ENV_VAR = "JENVTEST_DIR";
99
public static final String DIRECTORY_NAME = ".jenvtest";
1010

1111
/**
@@ -27,7 +27,7 @@ public class APIServerConfig {
2727
private boolean downloadBinaries = true;
2828

2929
public APIServerConfig() {
30-
var jenvtestDirFromEnvVar = System.getenv(CONFIG_ROOT_ENV_VAR);
30+
var jenvtestDirFromEnvVar = System.getenv(JENVTEST_DIR_ENV_VAR);
3131
if (jenvtestDirFromEnvVar != null) {
3232
this.jenvtestDir = jenvtestDirFromEnvVar;
3333
} else {

0 commit comments

Comments
 (0)