Skip to content

Commit

Permalink
Create an InviteService (#3628)
Browse files Browse the repository at this point in the history
* Create an InviteService

Signed-off-by: Radoslav Dimitrov <radoslav@stacklok.com>

* Add the InviteService to ingress.yaml

Signed-off-by: Radoslav Dimitrov <radoslav@stacklok.com>

---------

Signed-off-by: Radoslav Dimitrov <radoslav@stacklok.com>
  • Loading branch information
rdimitrov authored Jun 14, 2024
1 parent 457f6ab commit cd5d5b4
Show file tree
Hide file tree
Showing 9 changed files with 3,600 additions and 2,994 deletions.
7 changes: 7 additions & 0 deletions deployment/helm/templates/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,13 @@ spec:
name: minder-grpc
port:
name: grpc
- path: /minder.v1.InviteService
pathType: Prefix
backend:
service:
name: minder-grpc
port:
name: grpc
- path: /
pathType: Prefix
backend:
Expand Down
36 changes: 36 additions & 0 deletions docs/docs/ref/proto.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions internal/controlplane/register_handlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,11 @@ func RegisterGatewayHTTPHandlers(ctx context.Context, gwmux *runtime.ServeMux, g
if err := pb.RegisterEvalResultsServiceHandlerFromEndpoint(ctx, gwmux, grpcAddress, opts); err != nil {
log.Fatal().Err(err).Msg("failed to register gateway")
}

// Register the InviteService service
if err := pb.RegisterInviteServiceHandlerFromEndpoint(ctx, gwmux, grpcAddress, opts); err != nil {
log.Fatal().Err(err).Msg("failed to register gateway")
}
}

// RegisterGRPCServices registers the GRPC services
Expand Down Expand Up @@ -109,4 +114,7 @@ func RegisterGRPCServices(s *Server) {

// Register the EvalResultsService service
pb.RegisterEvalResultsServiceServer(s.grpcServer, s)

// Register the InviteService service
pb.RegisterInviteServiceServer(s.grpcServer, s)
}
1 change: 1 addition & 0 deletions internal/controlplane/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ type Server struct {
pb.UnimplementedPermissionsServiceServer
pb.UnimplementedProvidersServiceServer
pb.UnimplementedEvalResultsServiceServer
pb.UnimplementedInviteServiceServer
}

// NewServer creates a new server instance
Expand Down
70 changes: 70 additions & 0 deletions pkg/api/openapi/minder/v1/minder.swagger.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit cd5d5b4

Please sign in to comment.