Skip to content

Commit a84e84a

Browse files
committed
docs: update tilt example
- Tilt example wasn't functional as it was - Added go_main to point to where kubebuilder puts main.go - Use make tilt-up instead of trying to build your own kind cluster to proerly set up tilt to use the local registry config showin in the example tilt files Signed-off-by: cprivitere <[email protected]>
1 parent b9d40c6 commit a84e84a

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

docs/book/src/developer/providers/getting-started/building-running-and-testing.md

+4-7
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ config:
9393
image: controller:latest # change to remote image name if desired
9494
label: CAPM
9595
live_reload_deps: ["main.go", "go.mod", "go.sum", "api", "controllers", "pkg"]
96+
go_main: cmd/main.go # kubebuilder puts main.go under the cmd directory
9697
```
9798

9899
- Create file `tilt-settings.yaml` in the cluster-api directory:
@@ -107,15 +108,11 @@ enable_providers:
107108
- mailgun
108109
```
109110
110-
- Create a kind cluster. By default, Tiltfile assumes the kind cluster is named `capi-test`.
111+
- Bring tilt up by using the `make tilt-up` command in the cluster-api directory. This will ensure tilt is set up correctly to use a local registry for your image. You may need to `make tilt-clean` before this if you've been using tilt with other providers.
111112

112113
```bash
113-
kind create cluster --name capi-test
114-
115-
# If you want a more sophisticated setup of kind cluster + image registry, try:
116-
# ---
117-
# cd cluster-api
118-
# hack/kind-install-for-capd.sh
114+
cd cluster-api
115+
make tilt-up
119116
```
120117

121118
- Run `tilt up` in the cluster-api folder

0 commit comments

Comments
 (0)