-
Notifications
You must be signed in to change notification settings - Fork 820
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
Changing the allocator API to gRPC #1314
Conversation
Build Failed 😱 Build Id: 203bb724-c6ff-47ef-a3b7-912e90514fd7 To get permission to view the Cloud Build view, join the agones-discuss Google Group. |
Build Succeeded 👏 Build Id: ceee219e-d26d-49a4-ad1b-292f0f3afb63 The following development artifacts have been built, and will exist for the next 30 days:
A preview of the website (the last 30 builds are retained): To install this version:
|
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.
Overall, looks good - just some general comments 👍
cmd/allocator/main.go
Outdated
@@ -54,7 +58,7 @@ import ( | |||
) | |||
|
|||
var ( | |||
logger = runtime.NewLoggerWithSource("main") | |||
logger = runtime.NewLoggerWithSource("allocator-service") |
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.
I think this should stay as "main" so as to be inline with all our other main packages.
The package is there, so it's identifiable.
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.
I see. So the source is the source file. That's replacing the stack trace? :) I'll follow the guideline then.
go func() { | ||
// The certs are set on the config so passing empty as the cert path | ||
err := srv.ListenAndServeTLS("", "") | ||
err := grpcServer.Serve(listener) |
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.
Not for this PR, but eventually, should we do a REST interface as well via grpc-gateway?
The annotations are there in the proto file 😄
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.
Let's support REST, only if there is an ask.
Build Succeeded 👏 Build Id: 0cf84da6-e1c2-4b0d-9101-1f458e5afa3d The following development artifacts have been built, and will exist for the next 30 days:
A preview of the website (the last 30 builds are retained): To install this version:
|
Ping! :) |
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.
Looks good! Nice work!
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: markmandel, pooneh-m The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
New changes are detected. LGTM label has been removed. |
Build Failed 😱 Build Id: 7a2c5234-393a-4ec3-bf8a-fcc61e985bfe To get permission to view the Cloud Build view, join the agones-discuss Google Group. |
Build Succeeded 👏 Build Id: aad9e295-bd1b-4da6-804e-2d5e99b332bf The following development artifacts have been built, and will exist for the next 30 days:
A preview of the website (the last 30 builds are retained): To install this version:
|
Build Failed 😱 Build Id: 5f7bb5fd-6ca1-4bce-8ea0-930c0c7a94b8 To get permission to view the Cloud Build view, join the agones-discuss Google Group. |
Co-authored-by: Mark Mandel <[email protected]>
Changing the allocator API from REST to gRPC.
The API is still in alpha version; so breaking changes are OK.
#597