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/book/src/developers/development.md
+43-44Lines changed: 43 additions & 44 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -148,18 +148,15 @@ development will span both CAPZ and CAPI, then follow the [CAPI and CAPZ instruc
148
148
149
149
If you want to develop in CAPZ and get a local development cluster working quickly, this is the path for you.
150
150
151
-
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:
151
+
From the root of the CAPZ repository and after configuring the environment variables, you can run the following to generate your `tilt-settings.yaml` file:
@@ -187,7 +184,7 @@ To use [Tilt](https://tilt.dev/) for a simplified development workflow, follow t
187
184
188
185
> you may wish to checkout out the correct version of CAPI to match the [version used in CAPZ][go.mod]
189
186
190
-
Note that `tilt up` will be run from the `cluster-api repository` directory and the `tilt-settings.json` file will point back to the `cluster-api-provider-azure` repository directory. Any changes you make to the source code in `cluster-api` or `cluster-api-provider-azure` repositories will automatically redeployed to the `kind` cluster.
187
+
Note that `tilt up` will be run from the `cluster-api repository` directory and the `tilt-settings.yaml` file will point back to the `cluster-api-provider-azure` repository directory. Any changes you make to the source code in `cluster-api` or `cluster-api-provider-azure` repositories will automatically redeployed to the `kind` cluster.
191
188
192
189
After you have cloned both repositories, your folder structure should look like:
193
190
@@ -196,21 +193,23 @@ After you have cloned both repositories, your folder structure should look like:
196
193
|-- src/cluster-api (run `tilt up` here)
197
194
```
198
195
199
-
After configuring the environment variables, run the following to generate your `tilt-settings.json` file:
196
+
After configuring the environment variables, run the following to generate your `tilt-settings.yaml` file:
@@ -270,26 +269,26 @@ To view cluster resources using the [Cluster API Visualizer](https://github.com/
270
269
271
270
#### Debugging
272
271
273
-
You can debug CAPZ (or another provider / core CAPI) by running the controllers with delve. When developing using Tilt this is easily done by using the **debug** configuration section in your **tilt-settings.json** file. For example:
You can debug CAPZ (or another provider / core CAPI) by running the controllers with delve. When developing using Tilt this is easily done by using the **debug** configuration section in your **tilt-settings.yaml** file. For example:
> Note you can list multiple controllers or **core** CAPI and expose metrics as well in the debug section. Full details of the options can be seen [here](https://cluster-api.sigs.k8s.io/developer/tilt.html).
If you wish to override the default variables for flavor workers, you can specify them as part of your tilt-settings.json as seen in the example below. Please note, the precedence of variables is as follows:
41
+
If you wish to override the default variables for flavor workers, you can specify them as part of your tilt-settings.yaml as seen in the example below. Please note, the precedence of variables is as follows:
45
42
46
43
1. explicitly defined vars for each flavor i.e. worker-templates.flavors[0].AZURE_VNET_NAME
47
44
2. vars defined at 'metadata' level-- spans workers i.e. metadata.AZURE_VNET_NAME
48
45
3. programmatically defined default vars i.e. everything except azure tenant, client, subscription
0 commit comments