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) support new format of Dataplane #579

Merged
merged 4 commits into from
Feb 18, 2020

Conversation

jakubdyszkiewicz
Copy link
Contributor

Summary

Support the new format of the Dataplane across Kuma CP including scraping metrics from Gateway Dataplanes.

@jakubdyszkiewicz jakubdyszkiewicz requested review from a team and yskopets February 13, 2020 13:47
@@ -143,15 +170,15 @@ func ParseIP(text string) (string, error) {
}

func (n *Dataplane_Networking) GetInboundInterface(service string) (*InboundInterface, error) {
for _, inbound := range n.Inbound {
ifaces, err := n.GetInboundInterfaces()
Copy link
Contributor

Choose a reason for hiding this comment

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

This comes at a price.

Can we avoid this ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah, I decided to go for simplicity since I don't expect many inbounds (2? 5?), but ok - refactored so we convert it only when needed.

api/mesh/v1alpha1/dataplane_helpers_test.go Outdated Show resolved Hide resolved
@@ -210,13 +210,13 @@ var _ = Describe("snapshotGenerator", func() {
},
Spec: mesh_proto.Dataplane{
Networking: &mesh_proto.Dataplane_Networking{
Inbound: []*mesh_proto.Dataplane_Networking_Inbound{{
Interface: "192.168.0.3:3000:3000",
Address: "192.168.0.3",
Copy link
Contributor

Choose a reason for hiding this comment

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

Is it expected that we change input data but the outcome doesn't change ? Why to change input data then ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is a test for Gateway Dataplane. I wanted to test if it works after the change.

@jakubdyszkiewicz jakubdyszkiewicz changed the base branch from feature/dp-new-format to master February 18, 2020 12:11
@jakubdyszkiewicz jakubdyszkiewicz merged commit 016eed7 into master Feb 18, 2020
@jakubdyszkiewicz jakubdyszkiewicz deleted the feature/gateway-metrics branch February 28, 2020 08:55
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.

2 participants