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

kuma-cp: generate HTTP-specific inbound listeners for services tagged with protocol: http #574

Merged
merged 3 commits into from
Feb 12, 2020

Conversation

yskopets
Copy link
Contributor

Summary

  • generate HTTP-specific inbound listeners for services tagged with protocol: http

@yskopets yskopets requested a review from a team February 10, 2020 16:43
@yskopets yskopets added this to the 0.4.0 milestone Feb 10, 2020
@@ -84,3 +105,14 @@ func (d *DataplaneResource) GetIP() string {
}
return ifaces[0].DataplaneIP
}

func (d *DataplaneResource) GetProtocol(idx int) Protocol {
Copy link
Contributor

Choose a reason for hiding this comment

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

How about idx -> inboundIdx? I had to read the func body to know what is it about.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

}

pbst, err := ptypes.MarshalAny(config)
util_error.MustNot(err)
Copy link
Contributor

Choose a reason for hiding this comment

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

Isn't it better to rethrow this error just in case? Or are we 100% sure this won't be an error?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

MustNot(err) has been replaced with propagation

@yskopets yskopets force-pushed the feature/generate-inbound-listeners-for-http-traffic branch from 0a93f21 to 7480f09 Compare February 11, 2020 18:56
@yskopets yskopets changed the base branch from refactoring/refactor-out-reusable-func to master February 11, 2020 18:57
@yskopets yskopets merged commit 7671eaa into master Feb 12, 2020
@devadvocado devadvocado deleted the feature/generate-inbound-listeners-for-http-traffic branch March 30, 2020 13:16
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.

None yet

2 participants