Commit c39d9ee
committed
feat: annotate each progress line with the Kubernetes resource it tracks
A 0-second "Tunnel ready" with a 503-serving data plane (the
observedGeneration bug we just fixed) made it clear that users need a
fast pivot from a stuck progress line to 'datumctl describe ...' on the
exact resource. Without that, the operator's reason string is useful
text but its provenance is buried.
Add a 'resource: Option<String>' field on ProgressStep, pre-formatted
as "HTTPProxy/<tunnel-id>" or "Connector/<connector-name>", populated
from the live resource metadata in from_resources. Mapping per step:
tunnel accepted → HTTPProxy/<tunnel-id>
TLS certificate issued → HTTPProxy/<tunnel-id>
connector ready → Connector/<connector-name>
iroh DNS published → Connector/<connector-name>
route programmed → HTTPProxy/<tunnel-id>
envoy metadata propagated → HTTPProxy/<tunnel-id>
CLI renders the label inline:
✓ tunnel accepted (0.1s) [HTTPProxy/tunnel-gchhg]
… route programmed still pending after 30s [HTTPProxy/tunnel-gchhg]: …
ProgressStepKind::resource_kind() is the source of truth for which kind
backs each step, used by the test that asserts the wiring is correct
across all six steps. No extra API call needed — the connector name was
already in scope inside TunnelService::get_active_progress.1 parent d65ec4d commit c39d9ee
2 files changed
Lines changed: 83 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1116 | 1116 | | |
1117 | 1117 | | |
1118 | 1118 | | |
| 1119 | + | |
| 1120 | + | |
| 1121 | + | |
| 1122 | + | |
| 1123 | + | |
1119 | 1124 | | |
1120 | 1125 | | |
1121 | 1126 | | |
1122 | 1127 | | |
1123 | 1128 | | |
1124 | | - | |
| 1129 | + | |
1125 | 1130 | | |
1126 | | - | |
| 1131 | + | |
1127 | 1132 | | |
1128 | 1133 | | |
1129 | 1134 | | |
| |||
1150 | 1155 | | |
1151 | 1156 | | |
1152 | 1157 | | |
1153 | | - | |
| 1158 | + | |
1154 | 1159 | | |
1155 | 1160 | | |
1156 | | - | |
1157 | 1161 | | |
1158 | 1162 | | |
1159 | 1163 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
187 | 187 | | |
188 | 188 | | |
189 | 189 | | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
190 | 210 | | |
191 | 211 | | |
192 | 212 | | |
| |||
223 | 243 | | |
224 | 244 | | |
225 | 245 | | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
226 | 251 | | |
227 | 252 | | |
228 | 253 | | |
229 | 254 | | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
230 | 258 | | |
231 | 259 | | |
232 | 260 | | |
| |||
238 | 266 | | |
239 | 267 | | |
240 | 268 | | |
241 | | - | |
| 269 | + | |
| 270 | + | |
242 | 271 | | |
243 | 272 | | |
244 | 273 | | |
| |||
253 | 282 | | |
254 | 283 | | |
255 | 284 | | |
| 285 | + | |
256 | 286 | | |
257 | 287 | | |
258 | 288 | | |
| |||
262 | 292 | | |
263 | 293 | | |
264 | 294 | | |
| 295 | + | |
265 | 296 | | |
266 | 297 | | |
267 | 298 | | |
268 | 299 | | |
269 | 300 | | |
270 | 301 | | |
| 302 | + | |
271 | 303 | | |
272 | 304 | | |
273 | 305 | | |
274 | 306 | | |
275 | 307 | | |
276 | 308 | | |
| 309 | + | |
277 | 310 | | |
278 | 311 | | |
279 | 312 | | |
280 | 313 | | |
281 | 314 | | |
282 | 315 | | |
| 316 | + | |
283 | 317 | | |
284 | 318 | | |
285 | 319 | | |
286 | 320 | | |
287 | 321 | | |
288 | 322 | | |
| 323 | + | |
289 | 324 | | |
290 | 325 | | |
291 | 326 | | |
292 | 327 | | |
293 | 328 | | |
294 | 329 | | |
| 330 | + | |
295 | 331 | | |
296 | 332 | | |
297 | 333 | | |
| |||
1604 | 1640 | | |
1605 | 1641 | | |
1606 | 1642 | | |
| 1643 | + | |
| 1644 | + | |
| 1645 | + | |
| 1646 | + | |
| 1647 | + | |
| 1648 | + | |
| 1649 | + | |
| 1650 | + | |
| 1651 | + | |
| 1652 | + | |
| 1653 | + | |
| 1654 | + | |
| 1655 | + | |
| 1656 | + | |
| 1657 | + | |
| 1658 | + | |
| 1659 | + | |
| 1660 | + | |
| 1661 | + | |
| 1662 | + | |
| 1663 | + | |
| 1664 | + | |
| 1665 | + | |
| 1666 | + | |
| 1667 | + | |
| 1668 | + | |
| 1669 | + | |
| 1670 | + | |
| 1671 | + | |
| 1672 | + | |
| 1673 | + | |
| 1674 | + | |
| 1675 | + | |
| 1676 | + | |
| 1677 | + | |
| 1678 | + | |
| 1679 | + | |
| 1680 | + | |
1607 | 1681 | | |
1608 | 1682 | | |
1609 | 1683 | | |
| |||
0 commit comments