Skip to content
This repository has been archived by the owner on Oct 22, 2024. It is now read-only.

Commit

Permalink
test: Fedora as default for TEST_DISTRO, doc update
Browse files Browse the repository at this point in the history
We recently stopped testing Clear Linux in the CI, so it also
shouldn't be the default for a manual "make start".
  • Loading branch information
pohly committed Jun 9, 2020
1 parent 1980754 commit 43ecf3c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 14 deletions.
21 changes: 8 additions & 13 deletions docs/autotest.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,14 +42,6 @@ volumes are not passed in as PMEM, but Kata Containers [can be
installed](https://github.com/kata-containers/packaging/tree/master/kata-deploy#kubernetes-quick-start)
and used for applications that are not using PMEM.

The `clear-cloud` image is downloaded automatically. By default,
four different virtual machines are prepared. Each image is pre-configured
with its own hostname and with network.

The images will contain the latest
[Clear Linux OS](https://clearlinux.org/) and have the Kubernetes
version supported by Clear Linux installed.

PMEM-CSI images must have been created and published in some Docker
registry, as described earlier in [build PMEM-CSI](DEVELOPMENT.md#build-pmem-csi).
In addition, that registry must be accessible from inside the
Expand All @@ -75,7 +67,10 @@ Use `make stop` to stop and remove the virtual machines.

`make restart` can be used to cleanly reboot all virtual
machines. This is useful during development after a `make push-images`
to ensure that the cluster runs those rebuilt images.
to ensure that the cluster runs those rebuilt images. However, for
that to work the image pull policy has to be changed from the default
"if not present" to "always" by setting the `TEST_IMAGE_PULL_POLICY`
environment variable to `Always`.

## Running commands on test cluster nodes over ssh

Expand Down Expand Up @@ -106,11 +101,11 @@ permanently by creating a file like `test/test-config.d/my-config.sh`.
Multiple different clusters can be brought up in parallel by changing
the default `pmem-govm` cluster name via the `CLUSTER` env variable.

For example, this invocation sets up a cluster using the non-default
Fedora distro:
For example, this invocation sets up a cluster using an older release
of Kubernetes:

```
TEST_DISTRO=fedora CLUSTER=fedora-govm make start
TEST_KUBERNETES_VERSION=1.17 CLUSTER=kubernetes-1.17 make start
```

See additional details in [test/test-config.d](/test/test-config.d).
Expand Down Expand Up @@ -153,4 +148,4 @@ It is also possible to run just the sanity tests until one of them fails:
``` console
$ REPO_ROOT=`pwd` ginkgo '-focus=sanity' -failFast ./test/e2e/
...
```
```
2 changes: 1 addition & 1 deletion test/test-config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ if [ -d test/test-config.d ]; then
fi

# The operating system to install inside the nodes.
: ${TEST_DISTRO:=clear}
: ${TEST_DISTRO:=fedora}

# Choose the version of the operating system that gets installed. Valid
# values depend on the OS.
Expand Down

0 comments on commit 43ecf3c

Please sign in to comment.