Conversation
✅ Deploy Preview for cerulean-figolla-1f9435 canceled.
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #8187 +/- ##
==========================================
- Coverage 73.85% 73.84% -0.02%
==========================================
Files 242 242
Lines 37044 37050 +6
==========================================
Hits 27358 27358
- Misses 7753 7759 +6
Partials 1933 1933 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
82facb9 to
5d39f4b
Compare
ad7262c to
15a9479
Compare
15a9479 to
6ef431e
Compare
e31dd35 to
6196aa9
Compare
|
|
||
| var hasHostnameIntersection bool | ||
| // need to check hostname intersection if there are listeners | ||
| hasHostnameIntersection := len(parentRef.listeners) == 0 |
There was a problem hiding this comment.
how does this help, computeHosts resets this anyways
There was a problem hiding this comment.
if there're any listeners, the logic is same as before.
this's used to avoid hasHostnameIntersection to false when there's no valid listener.
There was a problem hiding this comment.
its already defaulting to false since its a bool
There was a problem hiding this comment.
yes, but when there's no valid listener, we want true to avoid incorrect hostname intersection check.
* commit testdata Signed-off-by: zirain <zirain2009@gmail.com> * update Signed-off-by: zirain <zirain2009@gmail.com> * fix gen Signed-off-by: zirain <zirain2009@gmail.com> --------- Signed-off-by: zirain <zirain2009@gmail.com>
xref: #8244
Find this during test TLSRoute conformance test TLSRouteInvalidNoMatchingListenerHostname.
The issue is that, if a route is invalid(e.g. hostname no matching),
attachedRoutesshouldn't be increased.