Skip to content

Commit

Permalink
Merge pull request #42 from kube-tarian/grpc-reflection
Browse files Browse the repository at this point in the history
Reflection added to agent grpc server
  • Loading branch information
share2kanna authored Jan 29, 2023
2 parents 3288d2e + 4ef3ef0 commit 9390cfc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions agent/cmd/agent/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import (
"github.com/kube-tarian/kad/agent/pkg/config"
"github.com/kube-tarian/kad/agent/pkg/logging"
"github.com/kube-tarian/kad/agent/pkg/server"
"google.golang.org/grpc/reflection"
)

var log = logging.NewLogger()
Expand All @@ -38,6 +39,8 @@ func main() {
grpcServer := grpc.NewServer()
agentpb.RegisterAgentServer(grpcServer, s)
log.Infof("Server listening at %v", listener.Addr())
// Register reflection service on gRPC server.
reflection.Register(grpcServer)

go func() {
if err := grpcServer.Serve(listener); err != nil {
Expand Down
2 changes: 1 addition & 1 deletion charts/kad/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.1.6
version: 0.1.7

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
Expand Down

0 comments on commit 9390cfc

Please sign in to comment.