Commit 2a0d7fa
committed
fix: scope BackendTrafficPolicy conflict detection by sectionName
The conflict key only included the target Service (namespace/name/kind), so
two BackendTrafficPolicies targeting the same Service were always treated as
conflicting even when scoped to different ports via sectionName. Include
sectionName in the key so a port-scoped policy and a whole-Service policy
(or two different-section policies) can both be accepted.1 parent ddf0242 commit 2a0d7fa
1 file changed
Lines changed: 8 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
50 | 54 | | |
51 | 55 | | |
52 | 56 | | |
53 | | - | |
| 57 | + | |
54 | 58 | | |
55 | 59 | | |
56 | 60 | | |
| |||
143 | 147 | | |
144 | 148 | | |
145 | 149 | | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
146 | 153 | | |
147 | 154 | | |
148 | 155 | | |
| |||
0 commit comments