Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(kuma-cp) aggregate services in MeshInsight #2974

Conversation

bartsmykla
Copy link
Contributor

Summary

With this changes MeshInsights will contain services field,
with amount of external and internal services for mesh

Full changelog

no change log

Issues resolved

none issue resolved

Documentation

In progress

Testing

  • Unit tests
  • E2E tests
  • Manual testing on Universal
  • Manual testing on Kubernetes

Backwards compatibility

  • Add backport-to-stable label if the code is backwards compatible. Otherwise, list breaking changes.

With this changes MeshInsights will contain `services` field,
with amount of external and internal services for mesh

Signed-off-by: Bart Smykla <bartek@smykla.com>
@codecov-commenter
Copy link

Codecov Report

Merging #2974 (d976ba4) into master (0e665c5) will decrease coverage by 0.01%.
The diff coverage is 35.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2974      +/-   ##
==========================================
- Coverage   52.38%   52.37%   -0.02%     
==========================================
  Files         912      912              
  Lines       52522    52581      +59     
==========================================
+ Hits        27514    27537      +23     
- Misses      22814    22847      +33     
- Partials     2194     2197       +3     
Impacted Files Coverage Δ
api/mesh/v1alpha1/mesh_insight.pb.go 28.83% <19.56%> (-2.18%) ⬇️
pkg/insights/resyncer.go 68.08% <85.71%> (+0.92%) ⬆️
pkg/core/runtime/component/component.go 81.13% <0.00%> (-7.55%) ⬇️
pkg/core/resources/manager/cache.go 83.11% <0.00%> (-5.20%) ⬇️
pkg/plugins/leader/postgres/leader_elector.go 97.87% <0.00%> (+4.25%) ⬆️
pkg/core/bootstrap/autoconfig.go 54.46% <0.00%> (+8.03%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update a9022f0...d976ba4. Read the comment docs.

@bartsmykla bartsmykla merged commit 704c57c into kumahq:master Oct 19, 2021
@bartsmykla bartsmykla deleted the feature/agregate-services-in-mesh-insights branch October 19, 2021 14:00
Comment on lines +341 to +342
// Builtin gateways have inbounds
if dpOverview.Spec.Dataplane.IsDelegatedGateway() {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure which is right here. The comment references builtin gateways but the code references deletegated gateways?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK, I see ... the condition is backwards :-(


// Builtin gateways have inbounds
if dpOverview.Spec.Dataplane.IsDelegatedGateway() {
svcName := dpOverview.Spec.Dataplane.Networking.GetGateway().GetTags()[mesh_proto.ServiceTag]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please consistently use the protobuf Get prefix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants