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: added grpc service definition and unimplemented server #41

Merged
merged 4 commits into from
Aug 9, 2021

Conversation

richardcase
Copy link
Member

@richardcase richardcase commented Jul 29, 2021

What this PR does / why we need it:

Added the grpc service definition for reignited. Based on this definition the command to serve the api has been added and an unimplemented version of the server has been added for future implementation.

Updated the tools with the protobuf/grpc/gateway/openapi go generators.

Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):
Fixes #26
Fixes #27

Special notes for your reviewer:

Checklist:

  • squashed commits
  • includes documentation
  • adds unit tests
  • adds or updates e2e tests

Release note:

gRPC service definition added for reignite.

@richardcase richardcase added the kind/feature New feature or request label Jul 30, 2021
@richardcase richardcase changed the title WIP: feat: added grpc service definition feat: added grpc service definition and unimplemented server Jul 30, 2021
api/services/microvm/v1alpha1/microvms.proto Outdated Show resolved Hide resolved
api/services/microvm/v1alpha1/microvms.proto Outdated Show resolved Hide resolved
internal/command/run.go Outdated Show resolved Hide resolved
pkg/defaults/defaults.go Outdated Show resolved Hide resolved
Added the grpc service definition for reignited. Updated the tools
with the protobuf/grpc go generators.

Refactored the layout of the `api` folder to allow for future additional
api definitions to be added.

Signed-off-by: Richard Case <[email protected]>
Added a new command to server the grpc service. This currently
serves an unimplemented service that will error if any of the
rpc methods are called.

Also, added the gateway and openapi code generation.

Signed-off-by: Richard Case <[email protected]>
Update the proto definition to explicitly state the http options for
the grpc gateway. Also changed the names of the service methods and
associated messages to follow the google naming conventions.

Signed-off-by: Richard Case <[email protected]>
@richardcase richardcase merged commit a5f6420 into main Aug 9, 2021
@richardcase richardcase deleted the 35_grpcdef branch August 9, 2021 12:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/feature New feature or request size/l
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Create service stub implementation and host Create gRPC Service Definition
2 participants