You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/development.md
+39Lines changed: 39 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -97,6 +97,45 @@ A few Makefile and scripts are offered to work with go modules:
97
97
98
98
### Using Tilt
99
99
100
+
Both of the [Tilt](https://tilt.dev) setups below will get you started developing CAPZ in a local kind cluster.
101
+
The main difference is the number of components you will build from source and the scope of the changes you'd like to make.
102
+
If you only want to make changes in CAPZ, then follow [CAPZ instructions](#tilt-for-dev-in-capz). This will
103
+
save you from having to build all of the images for CAPI, which can take a while. If the scope of your
104
+
development will span both CAPZ and CAPI, then follow the [CAPI and CAPZ instructions](#tilt-for-dev-in-both-capz-and-capi).
105
+
106
+
#### Tilt for dev in CAPZ
107
+
108
+
If you want to develop in CAPZ and get a local development cluster working quickly, this is the path for you.
109
+
110
+
From the root of the CAPZ repository and after configuring the environment variables, you can run the following to generate your `tilt-settings.json` file:
To tear down the kind cluster built by the command above, just run:
131
+
```shell
132
+
make kind-reset
133
+
```
134
+
135
+
#### Tilt for dev in both CAPZ and CAPI
136
+
137
+
If you want to develop in both CAPI and CAPZ at the same time, then this is the path for you.
138
+
100
139
To use [Tilt](https://tilt.dev/) for a simplified development workflow, follow the [instructions](https://cluster-api.sigs.k8s.io/developer/tilt.html) in the cluster-api repo. The instructions will walk you through cloning the Cluster API (capi) repository and configuring Tilt to use `kind` to delpoy the cluster api managment components.
101
140
102
141
> you may wish to checkout out the correct version of capi to match the [version used in capz](go.mod)
0 commit comments