sermant-io / Sermant

CNCF sandbox project, a Cloud-Native Proxyless Service Mesh based on Java Bytecode Enhancement Technology
https://sermant.io/
Apache License 2.0
1.25k stars 164 forks source link

xds route and lb service #1615

Closed daizhenyu closed 1 month ago

daizhenyu commented 2 months ago

What type of PR is this?

Feature.

What this PR does / why we need it?

xds route and lb service, contains:

  1. rds and cds handler
  2. route and lb service

Which issue(s) this PR fixes?

Fixes #1604

Does this PR introduce a user-facing change?

No

Checklist

codecov[bot] commented 2 months ago

Codecov Report

Attention: Patch coverage is 81.36364% with 41 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
...mant/implement/service/xds/XdsCoreServiceImpl.java 0.00% 12 Missing :warning:
...mant/implement/service/xds/cache/XdsDataCache.java 81.13% 6 Missing and 4 partials :warning:
...service/xds/discovery/XdsServiceDiscoveryImpl.java 70.00% 4 Missing and 2 partials :warning:
...mant/implement/service/xds/handler/XdsHandler.java 54.54% 4 Missing and 1 partial :warning:
...mant/implement/service/xds/handler/CdsHandler.java 86.66% 2 Missing :warning:
...mant/implement/service/xds/handler/LdsHandler.java 91.66% 2 Missing :warning:
...mant/implement/service/xds/handler/RdsHandler.java 87.50% 2 Missing :warning:
...ment/service/xds/utils/EdsProtocolTransformer.java 92.30% 1 Missing and 1 partial :warning:
Flag Coverage Δ Complexity Δ
unittests 43.54% <81.36%> (+0.27%) 182.00 <0.00> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ Complexity Δ
...re/service/xds/entity/XdsClusterLoadAssigment.java 100.00% <100.00%> (ø) 0.00 <0.00> (ø)
...o/sermant/core/service/xds/entity/XdsLocality.java 84.84% <100.00%> (+4.84%) 0.00 <0.00> (ø)
...ice/xds/entity/XdsServiceClusterLoadAssigment.java 85.18% <100.00%> (+3.36%) 0.00 <0.00> (ø)
...mant/implement/service/xds/handler/EdsHandler.java 86.66% <100.00%> (+4.31%) 0.00 <0.00> (ø)
...ice/xds/loadbalance/XdsLoadBalanceServiceImpl.java 100.00% <100.00%> (ø) 0.00 <0.00> (?)
...plement/service/xds/route/XdsRouteServiceImpl.java 100.00% <100.00%> (ø) 0.00 <0.00> (?)
...mant/implement/service/xds/handler/CdsHandler.java 94.28% <86.66%> (+0.16%) 0.00 <0.00> (ø)
...mant/implement/service/xds/handler/LdsHandler.java 91.66% <91.66%> (ø) 0.00 <0.00> (?)
...mant/implement/service/xds/handler/RdsHandler.java 87.50% <87.50%> (ø) 0.00 <0.00> (?)
...ment/service/xds/utils/EdsProtocolTransformer.java 83.07% <92.30%> (ø) 0.00 <0.00> (?)
... and 4 more

... and 33 files with indirect coverage changes