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