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/developer/tilt.md
+72-72Lines changed: 72 additions & 72 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -72,7 +72,7 @@ documentation](https://docs.tilt.dev/api.html#api.default_registry) for more det
72
72
for more details.
73
73
74
74
**kustomize_substitutions** (Map{String: String}, default={}): An optional map of substitutions for`${}`-style placeholdersin the
75
-
provider's yaml. **Note**: It's recommended to enable the following feature flags forlocal dev environment to ensure e2e tests run through:
75
+
provider's yaml. **Note**: When running E2E tests locally using an existing cluster managed by Tilt, the following substitutions are required for successful tests:
76
76
```yaml
77
77
kustomize_substitutions:
78
78
CLUSTER_TOPOLOGY: "true"
@@ -81,73 +81,6 @@ kustomize_substitutions:
81
81
EXP_KUBEADM_BOOTSTRAP_FORMAT_IGNITION: "true"
82
82
```
83
83
84
-
**deploy_observability** ([string], default=[]): If set, installs on the dev cluster one of more observability
85
-
tools. Supported values are `grafana`, `loki`, `promtail` and/or `prometheus` (Note: the UI for`grafana` and `prometheus` will be accessible via a linkin the tilt console).
86
-
Important! This feature requires the `helm`command to be available in the user's path.
87
-
88
-
**debug** (Map{string: Map} default{}): A map of named configurations for the provider. The key is the name of the provider.
89
-
90
-
Supported settings:
91
-
92
-
* **port** (int, default=0 (disabled)): If set to anything other than 0, then Tilt will run the provider with delve
93
-
and port forward the delve server to localhost on the specified debug port. This can then be used with IDEs such as
94
-
Visual Studio Code, Goland and IntelliJ.
95
-
96
-
* **continue** (bool, default=true): By default, Tilt will run delve with `--continue`, such that any provider with
97
-
debugging turned on will run normally unless specifically having a breakpoint entered. Change to false if you
98
-
do not want the controller to start at all by default.
99
-
100
-
* **profiler_port** (int, default=0 (disabled)): If set to anything other than 0, then Tilt will enable the profiler with
101
-
`--profiler-address` and set up a port forward. A "profiler" link will be visible in the Tilt Web UI for the controller.
102
-
103
-
* **metrics_port** (int, default=0 (disabled)): If set to anything other than 0, then Tilt will port forward to the
104
-
default metrics port. A "metrics" link will be visible in the Tilt Web UI for the controller.
105
-
106
-
* **race_detector** (bool, default=false) (Linux amd64 only): If enabled, Tilt will compile the specified controller with
107
-
cgo and statically compile in the system glibc and enable the race detector. Currently, this is only supported when
108
-
building on Linux amd64 systems. You must install glibc-static or have libc.a available for this to work.
109
-
110
-
Example: Using the configuration below:
111
-
112
-
```yaml
113
-
debug:
114
-
core:
115
-
continue: false
116
-
port: 30000
117
-
profiler_port: 40000
118
-
metrics_port: 40001
119
-
```
120
-
121
-
##### Wiring up debuggers
122
-
###### Visual Studio
123
-
When using the example above, the core CAPI controller can be debugged in Visual Studio Code using the following launch configuration:
124
-
125
-
```json
126
-
{
127
-
"version": "0.2.0",
128
-
"configurations": [
129
-
{
130
-
"name": "Core CAPI Controller",
131
-
"type": "go",
132
-
"request": "attach",
133
-
"mode": "remote",
134
-
"remotePath": "",
135
-
"port": 30000,
136
-
"host": "127.0.0.1",
137
-
"showLog": true,
138
-
"trace": "log",
139
-
"logOutput": "rpc"
140
-
}
141
-
]
142
-
}
143
-
```
144
-
145
-
###### Goland / Intellij
146
-
With the above example, you can configure [a Go Remote run/debug
**deploy_observability** ([string], default=[]): If set, installs on the dev cluster one of more observability
157
+
tools. Supported values are `grafana`, `loki`, `promtail` and/or `prometheus` (Note: the UI for `grafana` and `prometheus` will be accessible via a link in the tilt console).
158
+
Important! This feature requires the `helm` command to be available in the user's path.
159
+
160
+
**debug** (Map{string: Map} default{}): A map of named configurations for the provider. The key is the name of the provider.
161
+
162
+
Supported settings:
163
+
164
+
***port** (int, default=0 (disabled)): If set to anything other than 0, then Tilt will run the provider with delve
165
+
and port forward the delve server to localhost on the specified debug port. This can then be used with IDEs such as
166
+
Visual Studio Code, Goland and IntelliJ.
167
+
168
+
***continue** (bool, default=true): By default, Tilt will run delve with `--continue`, such that any provider with
169
+
debugging turned on will run normally unless specifically having a breakpoint entered. Change to falseif you
170
+
do not want the controller to start at all by default.
171
+
172
+
***profiler_port** (int, default=0 (disabled)): If set to anything other than 0, then Tilt will enable the profiler with
173
+
`--profiler-address` and set up a port forward. A "profiler" link will be visible in the Tilt Web UI for the controller.
174
+
175
+
***metrics_port** (int, default=0 (disabled)): If set to anything other than 0, then Tilt will port forward to the
176
+
default metrics port. A "metrics" link will be visible in the Tilt Web UI for the controller.
177
+
178
+
***race_detector** (bool, default=false) (Linux amd64 only): If enabled, Tilt will compile the specified controller with
179
+
cgo and statically compile in the system glibc and enable the race detector. Currently, this is only supported when
180
+
building on Linux amd64 systems. You must install glibc-static or have libc.a available for this to work.
181
+
182
+
Example: Using the configuration below:
183
+
184
+
```yaml
185
+
debug:
186
+
core:
187
+
continue: false
188
+
port: 30000
189
+
profiler_port: 40000
190
+
metrics_port: 40001
191
+
```
192
+
193
+
##### Wiring up debuggers
194
+
###### Visual Studio
195
+
When using the example above, the core CAPI controller can be debugged in Visual Studio Code using the following launch configuration:
196
+
197
+
```json
198
+
{
199
+
"version": "0.2.0",
200
+
"configurations": [
201
+
{
202
+
"name": "Core CAPI Controller",
203
+
"type": "go",
204
+
"request": "attach",
205
+
"mode": "remote",
206
+
"remotePath": "",
207
+
"port": 30000,
208
+
"host": "127.0.0.1",
209
+
"showLog": true,
210
+
"trace": "log",
211
+
"logOutput": "rpc"
212
+
}
213
+
]
214
+
}
215
+
```
216
+
217
+
###### Goland / Intellij
218
+
With the above example, you can configure [a Go Remote run/debug
0 commit comments