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): XDS config dump on Global CP #4301

Merged
merged 7 commits into from May 20, 2022
Merged

Conversation

jakubdyszkiewicz
Copy link
Contributor

Summary

This PR introduces support for executing XDS Config Dump on Global CP.
It establishes a pattern of exchanging information between Global CP and Zone CP aside of exchanging Kuma resources.

Support of XDSConfig stream inside pkg/kds/mux may not be the cleanest solution, but I'd rather postpone refactors to the moment we introduce streaming of resources to the same service (as described here #3789 (comment))

Issues resolved

Fix #3789

Documentation

In progress

Testing

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

Backwards compatibility

- [ ] Update UPGRADE.md with any steps users will need to take when upgrading.
- [ ] Add backport-to-stable label if the code follows our backporting policy

Signed-off-by: Jakub Dyszkiewicz <jakub.dyszkiewicz@gmail.com>
@jakubdyszkiewicz jakubdyszkiewicz requested a review from a team as a code owner May 17, 2022 11:18
Signed-off-by: Jakub Dyszkiewicz <jakub.dyszkiewicz@gmail.com>
Signed-off-by: Jakub Dyszkiewicz <jakub.dyszkiewicz@gmail.com>
@codecov-commenter
Copy link

codecov-commenter commented May 18, 2022

Codecov Report

Merging #4301 (f1864c0) into master (944703d) will decrease coverage by 0.18%.
The diff coverage is 29.97%.

@@            Coverage Diff             @@
##           master    #4301      +/-   ##
==========================================
- Coverage   55.70%   55.52%   -0.19%     
==========================================
  Files         935      940       +5     
  Lines       56434    56733     +299     
==========================================
+ Hits        31439    31503      +64     
- Misses      22518    22743     +225     
- Partials     2477     2487      +10     
Impacted Files Coverage Δ
pkg/core/resources/model/resource.go 86.66% <ø> (ø)
pkg/envoy/admin/client.go 6.95% <0.00%> (ø)
pkg/kds/global/components.go 14.70% <0.00%> (-1.43%) ⬇️
pkg/kds/mux/client.go 0.00% <0.00%> (ø)
pkg/kds/mux/server.go 0.00% <0.00%> (ø)
pkg/kds/service/server.go 0.00% <0.00%> (ø)
pkg/kds/service/xds_config_processor.go 0.00% <0.00%> (ø)
pkg/kds/util/client_id.go 0.00% <0.00%> (ø)
pkg/kds/zone/components.go 23.18% <0.00%> (-0.35%) ⬇️
api/mesh/v1alpha1/kds.pb.go 23.77% <12.59%> (-11.44%) ⬇️
... and 11 more

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 944703d...f1864c0. Read the comment docs.

Signed-off-by: Jakub Dyszkiewicz <jakub.dyszkiewicz@gmail.com>
Signed-off-by: Jakub Dyszkiewicz <jakub.dyszkiewicz@gmail.com>
Signed-off-by: Jakub Dyszkiewicz <jakub.dyszkiewicz@gmail.com>
Copy link
Contributor

@lobkovilya lobkovilya left a comment

Choose a reason for hiding this comment

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

Phew, that's not an easy code 😅 But that's awesome work and functionality!

pkg/envoy/admin/kds_client.go Outdated Show resolved Hide resolved
pkg/kds/mux/client.go Show resolved Hide resolved
Signed-off-by: Jakub Dyszkiewicz <jakub.dyszkiewicz@gmail.com>
@jakubdyszkiewicz jakubdyszkiewicz merged commit 79c3b57 into master May 20, 2022
@jakubdyszkiewicz jakubdyszkiewicz deleted the global-xds branch May 20, 2022 07:11
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.

XDS config in Global CP
3 participants