Skip to content

Commit ebcc4ad

Browse files
author
Paul Yoong
committed
feat(deployer): ability to deploy JsonGrpc service
The deployer tool now has the ability to run the JsonGrpc service. To do so, issue the following command: ../deployer start -s JsonGrpc The JsonGrpc agent isn't added to the list of default services to run because in most cases it won't be necessary (it provides a way to invoke SPDK JSON gRPC methods).
1 parent fdd6812 commit ebcc4ad

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

control-plane/agents/jsongrpc/src/server.rs

+1
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ async fn server(cli_args: CliArgs) {
7474
.connect()
7575
.await
7676
.with_subscription(ServiceHandler::<JsonGrpcRequest>::default())
77+
.with_default_liveness()
7778
.run()
7879
.await;
7980
}

control-plane/deployer/src/infra/mod.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -336,11 +336,12 @@ impl_component! {
336336
Node, 2,
337337
Pool, 3,
338338
Volume, 3,
339+
JsonGrpc, 3,
339340
NodeOp, 4,
340341
}
341342

342343
// Message Bus Control Plane Agents
343-
impl_ctrlp_agents!(Node, Pool, Volume);
344+
impl_ctrlp_agents!(Node, Pool, Volume, JsonGrpc);
344345

345346
// Kubernetes Mayastor Low-level Operators
346347
impl_ctrlp_operators!(Node);

0 commit comments

Comments
 (0)