Commit 838c220
committed
fix(operator): dead doc link, VPC Link race hardening, Cloud Map teardown retry
Round-8 review:
- F1 (blocking): README and code comments linked to
docs/refarch/running-telegram-line-on-aws.md, which does not exist on
main or this branch (its PR #1274 is still open). Repointed the README
to the existing docs/refarch/telegram-cloudflare-tunnel.md as an
interim cross-reference with a note that a dedicated AWS-native doc is
tracked in #1274; ingress.rs/manifest.rs doc comments now point at
operator/README.md instead of the nonexistent file.
- F2: VPC Link names are not unique to the apigatewayv2 API (confirmed:
AWS does not error on a duplicate name), so two 'oabctl apply'
processes racing to create the same per-VPC link in a brand-new VPC
could end up with two links. Within a single apply run this can't
happen (manifests are processed sequentially), but the reconciler
hardens against the cross-process race anyway: ensure_vpc_link now
collects ALL matching links, deterministically picks the
lexicographically-first ID (stable regardless of list ordering) rather
than an arbitrary one, and warns with cleanup commands if more than one
exists.
- F3: Cloud Map service teardown gave up on the first 'still has
registered instances' error, permanently orphaning the service if the
caller didn't manually retry. ECS deregisters the instance
asynchronously on scale-to-0/delete, so this is usually just a timing
window, not a real conflict — teardown now retries delete_service up to
6 times over ~25s before falling back to a warning with the exact
manual cleanup command.
Verified: build, clippy --all-targets -D warnings, cargo test (13 passed).1 parent d40e7db commit 838c220
3 files changed
Lines changed: 67 additions & 22 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
215 | 215 | | |
216 | 216 | | |
217 | 217 | | |
218 | | - | |
219 | | - | |
220 | | - | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
221 | 224 | | |
222 | 225 | | |
223 | 226 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | | - | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
5 | 9 | | |
6 | 10 | | |
7 | 11 | | |
| |||
180 | 184 | | |
181 | 185 | | |
182 | 186 | | |
183 | | - | |
184 | | - | |
185 | | - | |
186 | | - | |
187 | | - | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
188 | 212 | | |
189 | 213 | | |
190 | 214 | | |
| |||
399 | 423 | | |
400 | 424 | | |
401 | 425 | | |
402 | | - | |
403 | | - | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
404 | 436 | | |
405 | | - | |
| 437 | + | |
406 | 438 | | |
407 | 439 | | |
408 | 440 | | |
409 | 441 | | |
410 | 442 | | |
411 | 443 | | |
412 | | - | |
413 | | - | |
| 444 | + | |
| 445 | + | |
414 | 446 | | |
415 | 447 | | |
416 | | - | |
417 | | - | |
418 | | - | |
419 | | - | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
420 | 451 | | |
421 | 452 | | |
422 | 453 | | |
423 | | - | |
424 | 454 | | |
425 | 455 | | |
426 | 456 | | |
427 | 457 | | |
428 | 458 | | |
429 | 459 | | |
430 | 460 | | |
| 461 | + | |
| 462 | + | |
| 463 | + | |
| 464 | + | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
431 | 472 | | |
432 | 473 | | |
433 | 474 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
167 | 167 | | |
168 | 168 | | |
169 | 169 | | |
170 | | - | |
171 | | - | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
172 | 173 | | |
173 | 174 | | |
174 | 175 | | |
| |||
0 commit comments