Commit 6bf98d7
committed
api: replace host.stripPortMode enum with host.stripPort bool
Drop the stripPortMode (Any|Matching) enum on ClientTrafficPolicy's host
section and replace it with a stripPort *bool that maps to Envoy's
strip_any_host_port (unconditional stripping).
The Matching mode mapped to strip_matching_host_port, which compares the
Host header port against the Envoy listener port. Since a Gateway listener
on e.g. port 80 is translated to an Envoy listener on port 10080, Matching
never strips the port clients actually use, so it was silently ineffective.
As discussed in the PR review, only unconditional stripping is exposed,
expressed as a boolean per maintainer suggestion.
Regenerated CRDs, deepcopy, helm snapshots, docs and golden testdata, and
renamed the strip-port-matching gatewayapi test to strip-port.
Signed-off-by: Salim Boulkour <salim.boulkour@algolia.com>1 parent fc42045 commit 6bf98d7
18 files changed
Lines changed: 169 additions & 197 deletions
File tree
- api/v1alpha1
- charts
- gateway-crds-helm/templates/generated
- gateway-helm/charts/crds/crds/generated
- internal
- gatewayapi
- testdata
- ir
- xds/translator
- testdata
- in/xds-ir
- out/xds-ir
- release-notes
- site/content/en/latest
- api
- tasks/traffic
- test/helm/gateway-crds-helm
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | 8 | | |
22 | 9 | | |
23 | 10 | | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
28 | 14 | | |
29 | 15 | | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
30 | 23 | | |
31 | | - | |
| 24 | + | |
32 | 25 | | |
33 | 26 | | |
34 | 27 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 12 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
812 | 812 | | |
813 | 813 | | |
814 | 814 | | |
815 | | - | |
| 815 | + | |
816 | 816 | | |
817 | | - | |
818 | | - | |
819 | | - | |
820 | | - | |
| 817 | + | |
| 818 | + | |
| 819 | + | |
821 | 820 | | |
822 | | - | |
823 | | - | |
824 | | - | |
825 | | - | |
| 821 | + | |
| 822 | + | |
| 823 | + | |
| 824 | + | |
| 825 | + | |
| 826 | + | |
| 827 | + | |
| 828 | + | |
826 | 829 | | |
827 | 830 | | |
828 | 831 | | |
| |||
Lines changed: 12 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
811 | 811 | | |
812 | 812 | | |
813 | 813 | | |
814 | | - | |
| 814 | + | |
815 | 815 | | |
816 | | - | |
817 | | - | |
818 | | - | |
819 | | - | |
| 816 | + | |
| 817 | + | |
| 818 | + | |
820 | 819 | | |
821 | | - | |
822 | | - | |
823 | | - | |
824 | | - | |
| 820 | + | |
| 821 | + | |
| 822 | + | |
| 823 | + | |
| 824 | + | |
| 825 | + | |
| 826 | + | |
| 827 | + | |
825 | 828 | | |
826 | 829 | | |
827 | 830 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
691 | 691 | | |
692 | 692 | | |
693 | 693 | | |
694 | | - | |
| 694 | + | |
695 | 695 | | |
696 | 696 | | |
697 | 697 | | |
| 698 | + | |
698 | 699 | | |
699 | 700 | | |
700 | | - | |
701 | | - | |
702 | | - | |
703 | 701 | | |
704 | 702 | | |
705 | 703 | | |
| |||
Lines changed: 0 additions & 28 deletions
This file was deleted.
Lines changed: 28 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| |||
119 | 119 | | |
120 | 120 | | |
121 | 121 | | |
122 | | - | |
| 122 | + | |
123 | 123 | | |
124 | 124 | | |
125 | 125 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
591 | 591 | | |
592 | 592 | | |
593 | 593 | | |
594 | | - | |
595 | | - | |
596 | | - | |
597 | | - | |
598 | | - | |
599 | | - | |
600 | | - | |
601 | | - | |
602 | | - | |
603 | | - | |
604 | | - | |
605 | 594 | | |
606 | 595 | | |
607 | 596 | | |
608 | | - | |
609 | | - | |
610 | | - | |
| 597 | + | |
| 598 | + | |
| 599 | + | |
611 | 600 | | |
612 | 601 | | |
613 | 602 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
403 | 403 | | |
404 | 404 | | |
405 | 405 | | |
406 | | - | |
407 | 406 | | |
408 | | - | |
409 | | - | |
| 407 | + | |
410 | 408 | | |
411 | | - | |
412 | | - | |
413 | 409 | | |
414 | 410 | | |
415 | 411 | | |
| |||
0 commit comments