diff options
author | Eric Multanen <eric.w.multanen@intel.com> | 2020-04-23 12:46:35 -0700 |
---|---|---|
committer | Eric Multanen <eric.w.multanen@intel.com> | 2020-04-30 16:55:52 -0700 |
commit | ea7b430a700a12cbde9e78acb3a993ad4257b12c (patch) | |
tree | 6345485d6440b3600a191360659df9036f0b5a09 /src/orchestrator/cmd | |
parent | 4100bfb764c40e2a788d28691b0f891e2ae86b74 (diff) |
Add gRPC framework to orchestrator
Adds proto and generated go files for a healtcheck,
contextupdate and installapp rpc services. Adds framework
for orchestrator as an rpc client to connect
to configured controllers.
Issue-ID: MULTICLOUD-1019
Signed-off-by: Eric Multanen <eric.w.multanen@intel.com>
Change-Id: Ie66865789fe2146258c91e168cfb8d5933905814
Diffstat (limited to 'src/orchestrator/cmd')
-rw-r--r-- | src/orchestrator/cmd/main.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/orchestrator/cmd/main.go b/src/orchestrator/cmd/main.go index 001903a7..7f258bbf 100644 --- a/src/orchestrator/cmd/main.go +++ b/src/orchestrator/cmd/main.go @@ -28,6 +28,8 @@ import ( "github.com/onap/multicloud-k8s/src/orchestrator/pkg/infra/config" contextDb "github.com/onap/multicloud-k8s/src/orchestrator/pkg/infra/contextdb" "github.com/onap/multicloud-k8s/src/orchestrator/pkg/infra/db" + "github.com/onap/multicloud-k8s/src/orchestrator/pkg/infra/rpc" + "github.com/onap/multicloud-k8s/src/orchestrator/pkg/module" ) func main() { @@ -56,12 +58,15 @@ func main() { Addr: ":" + config.GetConfiguration().ServicePort, } + module.NewControllerClient().InitControllers() + connectionsClose := make(chan struct{}) go func() { c := make(chan os.Signal, 1) signal.Notify(c, os.Interrupt) <-c httpServer.Shutdown(context.Background()) + rpc.CloseAllRpcConn() close(connectionsClose) }() |