-
Notifications
You must be signed in to change notification settings - Fork 327
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
chore(kuma-cp) migrate DiscoveryRequest/Response in KDS to V3 #2541
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Signed-off-by: Jakub Dyszkiewicz <jakub.dyszkiewicz@gmail.com>
Signed-off-by: Jakub Dyszkiewicz <jakub.dyszkiewicz@gmail.com>
lahabana
approved these changes
Aug 11, 2021
test/e2e/compatibility/cp_compatibility_kubernetes_multizone.go
Outdated
Show resolved
Hide resolved
Signed-off-by: Jakub Dyszkiewicz <jakub.dyszkiewicz@gmail.com>
Codecov Report
@@ Coverage Diff @@
## master #2541 +/- ##
==========================================
- Coverage 52.29% 51.97% -0.33%
==========================================
Files 865 867 +2
Lines 48098 48235 +137
==========================================
- Hits 25154 25069 -85
- Misses 20912 21137 +225
+ Partials 2032 2029 -3
Continue to review full report at Codecov.
|
mergify bot
pushed a commit
that referenced
this pull request
Aug 11, 2021
Signed-off-by: Jakub Dyszkiewicz <jakub.dyszkiewicz@gmail.com> (cherry picked from commit 5752bd6) # Conflicts: # pkg/kds/cache/snapshot.go # pkg/kds/server/type_adjust_callbacks.go
jakubdyszkiewicz
added a commit
that referenced
this pull request
Aug 13, 2021
Signed-off-by: Jakub Dyszkiewicz <jakub.dyszkiewicz@gmail.com>
jakubdyszkiewicz
pushed a commit
that referenced
this pull request
Aug 13, 2021
Signed-off-by: Jakub Dyszkiewicz <jakub.dyszkiewicz@gmail.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
KDS is a protocol to exchange Kuma entities between Global and Zone CP.
It is based on xDS (we use go-control-plane), but instead of Envoy resources we put Kuma resources.
Right now we use DiscoveryRequest/Response V2, but V2 protos were removed from Go Control Plane so we need to migrate in order to upgrade Go Control Plane in the future.
The logical xDS definition looks like this
But we in case of KDS, both Global and Zone CPs are logical servers and clients. That's why we created mux.proto on top of this
so on the wire, the real gRPC service is MultiplexService. Global is a real server and Zone is a real client, but logically under the hood - both are servers and clients.
Because
KumaDiscoveryService
is a logical service, I just migrated this to V3 protos.In the real service I added new fields
so new CP supports both V2 and V3 DiscoveryRequest.
We decide whether to send V2 or V3 proto on the wire, by a new gRPC MD header that we are sending.
Under the hood we convert between V2 and V3.
This way we can provide smooth migration. In the next major release, we can just remove the old
request
/response
.Full changelog
Issues resolved
No Github issue.
Documentation
Testing
Backwards compatibility
backport-to-stable
label if the code is backwards compatible. Otherwise, list breaking changes.