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) TrafficRoute L7 implementation #2062

Merged
merged 10 commits into from
May 31, 2021

Conversation

jakubdyszkiewicz
Copy link
Contributor

Summary

Implementation of L7 routing.

Issues resolved

Fix #885

Documentation

  • I write the docs after I'm done with modify section

Testing

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

@jakubdyszkiewicz jakubdyszkiewicz requested a review from a team as a code owner May 28, 2021 10:02
Copy link
Contributor

@bartsmykla bartsmykla left a comment

Choose a reason for hiding this comment

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

lgtm

Base automatically changed from feat/traffic-route-l7 to master May 28, 2021 12:26
…l7-impl

Signed-off-by: Jakub Dyszkiewicz <jakub.dyszkiewicz@gmail.com>
envoy_common.WithExternalService(isExternalService),
)

if name, ok := clusterCache[cluster.Hash()]; ok {
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm not sure I understand it. Hash is calculated as $name-$tags, so if hashes are equal then names are equal as well. That's why I don't understand why do we call cluster.SetName(name)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The weights might be different. So it's either take existing cluster, copy it and change the weight or take a new one and override the name. The rest should be the same

Signed-off-by: Jakub Dyszkiewicz <jakub.dyszkiewicz@gmail.com>
@jakubdyszkiewicz jakubdyszkiewicz merged commit 9d79827 into master May 31, 2021
@jakubdyszkiewicz jakubdyszkiewicz deleted the feat/traffic-route-l7-impl branch May 31, 2021 14:37
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.

Question: L7 routing?
3 participants