Skip to content

Commit 10dc497

Browse files
authored
Merge pull request #2981 from fabriziopandini/fix-dev-guide
📖 Move `extra_args` for Tilt before the run section
2 parents 07c909b + 05d72fe commit 10dc497

File tree

1 file changed

+21
-22
lines changed

1 file changed

+21
-22
lines changed

Diff for: docs/book/src/developer/tilt.md

+21-22
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,27 @@ base64 -i ~/path/to/gcp/credentials.json
131131
**trigger_mode** (String, default=`auto`): Optional setting to configure if tilt should automatically rebuild on changes.
132132
Set to `manual` to disable auto-rebuilding and require users to trigger rebuilds of individual changed components through the UI.
133133
134+
**extra_args** (Object, default={}): A mapping of provider to additional arguments to pass to the main binary configured
135+
for this provider. Each item in the array will be passed in to the manager for the given provider.
136+
137+
Example:
138+
139+
```json
140+
{
141+
"extra_args": {
142+
"core": ["--feature-gates=MachinePool=true"],
143+
"kubeadm-bootstrap": ["--feature-gates=MachinePool=true"],
144+
"azure": ["--feature-gates=MachinePool=true"]
145+
}
146+
}
147+
```
148+
149+
With this config, the respective managers will be invoked with:
150+
151+
```bash
152+
manager --feature-gates=MachinePool=true
153+
```
154+
134155
### Run Tilt!
135156
136157
To launch your development environment, run
@@ -192,28 +213,6 @@ COPY --from=tilt-helper /usr/bin/docker /usr/bin/docker
192213
COPY --from=tilt-helper /go/kubernetes/client/bin/kubectl /usr/bin/kubectl
193214
```
194215
195-
196-
**extra_args** (Object, default={}): A mapping of provider to additional arguments to pass to the main binary configured
197-
for this provider. Each item in the array will be passed in to the manager.
198-
199-
Example:
200-
201-
```json
202-
{
203-
"extra_args": {
204-
"core": ["--feature-gates=MachinePool=true"],
205-
"kubeadm-bootstrap": ["--feature-gates=MachinePool=true"],
206-
"azure": ["--feature-gates=MachinePool=true"]
207-
}
208-
}
209-
```
210-
211-
With this config, the manager will be invoked with:
212-
213-
```bash
214-
manager --feature-gates=MachinePool=true
215-
```
216-
217216
## Customizing Tilt
218217
219218
If you need to customize Tilt's behavior, you can create files in cluster-api's `tilt.d` directory. This file is ignored

0 commit comments

Comments
 (0)