Browse Source

YT-20658: add two fields to Bundle Controller API

added two fields to API, but without query (const values)
alexmipt 1 year ago
parent
commit
ec936365a4

+ 2 - 0
yt/yt/client/api/bundle_controller_client.h

@@ -15,6 +15,8 @@ struct TGetBundleConfigOptions
 struct TBundleConfigDescriptor
 {
     TString BundleName;
+    int RpcProxyCount;
+    int TabletNodeCount;
 };
 
 ////////////////////////////////////////////////////////////////////////////////

+ 2 - 0
yt/yt/client/driver/bundle_controller_commands.cpp

@@ -25,6 +25,8 @@ void TGetBundleConfigCommand::DoExecute(ICommandContextPtr context)
     context->ProduceOutputValue(BuildYsonStringFluently()
         .BeginMap()
             .Item("bundle_name").Value(result.BundleName)
+            .Item("rpc_proxy_count").Value(result.RpcProxyCount)
+            .Item("tablet_node_count").Value(result.TabletNodeCount)
         .EndMap());
 }