Commit 20eeccf
authored
fix(destination): properly deal with native sidecar port opacity in getProfile (#14791)
(Extracted from #14566)
When hitting pods directly at their their IPs, ports in native sidecars
that were marked as opaque via the `config.linkerd.io/opaque-ports`
annotation, weren't really being marked as opaque.
More concretely, the issue layed in the getProfile API, that was
forgoing init containers when iterating over containers in this
particular case.
Endpoint profile translator tests got expanded, testing for opaque ports
in both init and regular containers.1 parent c92c078 commit 20eeccf
File tree
2 files changed
+54
-16
lines changed- controller/api/destination
- watcher
2 files changed
+54
-16
lines changedLines changed: 53 additions & 15 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
21 | 51 | | |
22 | 52 | | |
23 | 53 | | |
24 | 54 | | |
25 | | - | |
| 55 | + | |
26 | 56 | | |
27 | 57 | | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
35 | 64 | | |
36 | 65 | | |
37 | 66 | | |
| |||
68 | 97 | | |
69 | 98 | | |
70 | 99 | | |
71 | | - | |
| 100 | + | |
72 | 101 | | |
73 | 102 | | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
78 | 116 | | |
79 | 117 | | |
80 | 118 | | |
| |||
97 | 135 | | |
98 | 136 | | |
99 | 137 | | |
100 | | - | |
| 138 | + | |
101 | 139 | | |
102 | 140 | | |
103 | 141 | | |
| |||
118 | 156 | | |
119 | 157 | | |
120 | 158 | | |
121 | | - | |
| 159 | + | |
122 | 160 | | |
123 | 161 | | |
124 | 162 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
794 | 794 | | |
795 | 795 | | |
796 | 796 | | |
797 | | - | |
| 797 | + | |
798 | 798 | | |
799 | 799 | | |
800 | 800 | | |
| |||
0 commit comments