Commit 7e1d1eb
Prioritize reroute-virtual-interfaces over kubevirtInterfaces (#57690)
If a pod has both the istio.io/reroute-virtual-interfaces annotation
and the older, deprecated traffic.sidecar.istio.io/kubevirtInterfaces
annotation, the newer one should take precedence. But the CNI plugin
and the injection template code were each handling them separately,
which caused unexpected behavior. This fix makes sure the newer
annotation always takes priority, while still supporting pods that
only use the deprecated annotation.
Fixes: istio/istio#57662
Signed-off-by: Sridhar Gaddam <sgaddam@redhat.com>
Co-authored-by: Sridhar Gaddam <sgaddam@redhat.com>1 parent 513b527 commit 7e1d1eb
File tree
5 files changed
+22
-11
lines changed- cni/pkg/plugin
- manifests/charts/istio-control/istio-discovery/files
- pkg/kube/inject/testdata/inject
- releasenotes/notes
5 files changed
+22
-11
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
275 | 275 | | |
276 | 276 | | |
277 | 277 | | |
278 | | - | |
279 | | - | |
280 | | - | |
281 | | - | |
282 | | - | |
283 | | - | |
284 | | - | |
| 278 | + | |
285 | 279 | | |
286 | 280 | | |
287 | 281 | | |
288 | 282 | | |
289 | 283 | | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
290 | 292 | | |
291 | 293 | | |
292 | 294 | | |
| |||
Lines changed: 3 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
119 | 119 | | |
120 | 120 | | |
121 | 121 | | |
122 | | - | |
123 | | - | |
124 | | - | |
125 | | - | |
126 | 122 | | |
127 | 123 | | |
128 | 124 | | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
129 | 128 | | |
130 | 129 | | |
131 | 130 | | |
| |||
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
16 | 17 | | |
17 | 18 | | |
18 | 19 | | |
| |||
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| 25 | + | |
25 | 26 | | |
26 | 27 | | |
27 | 28 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
0 commit comments