Commit d740258
committed
fix(controller): rebuild Envoy xDS snapshot after wiring transformers
The initial Envoy snapshot was generated before SetTransformers ran, so
it fell back to the legacy translation path — naming clusters
"cluster_<scheme>_<host>" and routes without the header-hash
discriminator. The policy engine's resources are built from the
transformer path ("upstream_<name>_<host>_<port>" clusters, header-hashed
route names), so the two disagreed until the first redeploy: cluster-header
APIs failed with cluster_not_found and header-matched routes returned 500
"policy chain not found".
- Regenerate the Envoy snapshot after transformers are wired and runtime
configs are loaded, before the policy snapshot is built
- Warn when TranslateConfigs silently falls back to the legacy path
because no transformer is registered for a non-WebSub kind
Signed-off-by: Renuka Fernando <renukapiyumal@gmail.com>1 parent 4b5a7bc commit d740258
2 files changed
Lines changed: 27 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
469 | 469 | | |
470 | 470 | | |
471 | 471 | | |
| 472 | + | |
| 473 | + | |
| 474 | + | |
| 475 | + | |
| 476 | + | |
| 477 | + | |
| 478 | + | |
| 479 | + | |
| 480 | + | |
| 481 | + | |
| 482 | + | |
| 483 | + | |
| 484 | + | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
472 | 488 | | |
473 | 489 | | |
474 | 490 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
747 | 747 | | |
748 | 748 | | |
749 | 749 | | |
| 750 | + | |
| 751 | + | |
| 752 | + | |
| 753 | + | |
| 754 | + | |
| 755 | + | |
| 756 | + | |
| 757 | + | |
| 758 | + | |
| 759 | + | |
| 760 | + | |
750 | 761 | | |
751 | 762 | | |
752 | 763 | | |
| |||
0 commit comments