-
Notifications
You must be signed in to change notification settings - Fork 336
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
Conversation
@@ -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() |
There was a problem hiding this comment.
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 ?
There was a problem hiding this comment.
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.
@@ -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", |
There was a problem hiding this comment.
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 ?
There was a problem hiding this comment.
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.
ebdfa45
to
08388fc
Compare
b195671
to
d0905db
Compare
Summary
Support the new format of the Dataplane across Kuma CP including scraping metrics from Gateway Dataplanes.