Skip to content

Commit 0396297

Browse files
Merge pull request #779 from TheHiddenLayer/update-docs
2 parents d242ef2 + 760fcb6 commit 0396297

File tree

1 file changed

+42
-8
lines changed

1 file changed

+42
-8
lines changed
Lines changed: 42 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# Prerequisites
22

3-
- [Docker](https://docs.docker.com/engine/install/)
3+
- [Docker](https://docs.docker.com/engine/install/) and [docker-buildx](https://github.com/docker/buildx)
4+
- [Helm](https://helm.sh/)
45
- [kind](https://kind.sigs.k8s.io/docs/user/quick-start/#installation)
56
- [tilt](https://docs.tilt.dev/install.html)
67
- [Golang](https://go.dev/doc/install)
@@ -10,14 +11,31 @@
1011

1112
Tilt offers a simple way of creating a local development environment.
1213

13-
## Create a kind cluster
14+
## Create local k8s cluster
1415

15-
Create a kind cluster with a local registry:
16+
```bash
17+
make deploy-dev
18+
```
19+
20+
Open the `tilt` browser UI by pressing the "space" key when prompted. Note that `tilt` sets up a directory watcher and will automatically redeploy any code changes!
21+
22+
You can check the "temporal-operator-controller-manager" Pod status with `kubectl get pods -n temporal-system -w`.
23+
24+
## Apply Manifests
25+
26+
Once the local cluster is created, start applying your desired manifests and let the temporal operator handle reconciliation:
1627

1728
```bash
18-
make dev-cluster
29+
# example
30+
make artifacts
31+
kubectl apply -f examples/cluster-postgres/00-namespace.yaml
32+
kubectl apply -f examples/cluster-postgres/01-postgresql.yaml
33+
kubectl apply -f examples/cluster-postgres/02-temporal-cluster.yaml
34+
kubectl apply -f examples/cluster-postgres/03-temporal-namespace.yaml
1935
```
2036

37+
Note: if you wish to interact with the Temporal Web UI or frontend gRPC service, you should port forward the services to localhost.
38+
2139
## Generate
2240

2341
Generate crd and docs when api is modified
@@ -26,12 +44,28 @@ Generate crd and docs when api is modified
2644
make generate
2745
```
2846

29-
## Run Tilt
47+
## Test
48+
49+
Run tests with coverage report:
50+
51+
```bash
52+
make test
53+
```
54+
55+
Run end-to-end tests:
3056

31-
Then run:
57+
```bash
58+
make test-e2e
59+
```
60+
61+
Run end-to-end tests on development computer using `kind`:
3262

3363
```bash
34-
tilt up
64+
make test-e2e-dev
3565
```
3666

37-
Now, Tilt will automatically reload the deployment to your local cluster every time you make a code change.
67+
## Gracefully Shutdown k8s Cluster
68+
69+
```bash
70+
make clean-dev-cluster
71+
```

0 commit comments

Comments
 (0)