...
1# Integration Test for watcherx/FileWatcher
2
3As kubernetes has a special way to change mounted config map
4values we want to make sure our file watcher is compatible with that.
5
6## Perquisites
7
8The versions are the ones that definitely work.
9
10- kind (v0.8.1)
11- kubectl (v1.18.5)
12- docker (v19.03.12-ce)
13- make (v4.3)
14
15## Structure
16
17The `main.go` just logs all events it gets. It is deployed to a
18kind kubernetes cluster together with a configmap that gets updated
19during the test. For details on the test steps have a look at the
20`Makefile`.
21
22## Running
23
24To generate the log snapshot run `make snapshot`. That snapshot
25should be committed. To check if the FileWatcher works run
26`make check`. For debugging purposes single steps of the setup
27have descriptive make target names and can be run separately.
28It is safe to delete the cluster at any point or rerun snapshot
29generation.
View as plain text