summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormregrock <[email protected]>2025-08-29 22:47:10 +0300
committerGitHub <[email protected]>2025-08-29 22:47:10 +0300
commitdd426f2a057607bc3b7083717b4e68e39bb5adf7 (patch)
tree6eb101fb0c42dbfcb9cfb05aea23b8f677a6c92b
parentbef2d2667d72fa0934f89bc42d3a83044eac507c (diff)
Make bridge commands unhidden (#23814)CLI_2.25.0
-rw-r--r--ydb/apps/ydb/CHANGELOG.md1
-rw-r--r--ydb/public/lib/ydb_cli/commands/ydb_bridge.cpp2
-rw-r--r--ydb/public/lib/ydb_cli/commands/ydb_cluster.cpp2
3 files changed, 3 insertions, 2 deletions
diff --git a/ydb/apps/ydb/CHANGELOG.md b/ydb/apps/ydb/CHANGELOG.md
index 432dd059e16..ec05bde93cf 100644
--- a/ydb/apps/ydb/CHANGELOG.md
+++ b/ydb/apps/ydb/CHANGELOG.md
@@ -1,6 +1,7 @@
## 2.25.0 ##
+* Added the `ydb admin cluster bridge` commands to manage a cluster in bridge mode: list, switchover, failover, takedown, rejoin.
* User and password authentication options are now parsed independently, allowing them to be sourced from different priority levels. For example, the username can be specified via the `--user` command-line option while the password is retrieved from the `YDB_PASSWORD` environment variable.
* Removed the `--float-mode` option from the `ydb workload tpch run` and `ydb workload tpcds run` commands. Float mode is now inferred automatically from the table schema created during the `init` phase.
* Added final execute statistics to `ydb workload * run` commands.
diff --git a/ydb/public/lib/ydb_cli/commands/ydb_bridge.cpp b/ydb/public/lib/ydb_cli/commands/ydb_bridge.cpp
index a7c9e016d66..6ddf95011b4 100644
--- a/ydb/public/lib/ydb_cli/commands/ydb_bridge.cpp
+++ b/ydb/public/lib/ydb_cli/commands/ydb_bridge.cpp
@@ -58,7 +58,7 @@ namespace {
TCommandBridge::TCommandBridge(bool allowEmptyDatabase)
: TClientCommandTree("bridge", {}, "Manage cluster in bridge mode")
{
- AddCommand(std::make_unique<TCommandBridgeUpdate>(allowEmptyDatabase));
+ AddHiddenCommand(std::make_unique<TCommandBridgeUpdate>(allowEmptyDatabase));
AddCommand(std::make_unique<TCommandBridgeList>(allowEmptyDatabase));
AddCommand(std::make_unique<TCommandBridgeSwitchover>(allowEmptyDatabase));
AddCommand(std::make_unique<TCommandBridgeFailover>(allowEmptyDatabase));
diff --git a/ydb/public/lib/ydb_cli/commands/ydb_cluster.cpp b/ydb/public/lib/ydb_cli/commands/ydb_cluster.cpp
index 651101851fd..a987c7e9190 100644
--- a/ydb/public/lib/ydb_cli/commands/ydb_cluster.cpp
+++ b/ydb/public/lib/ydb_cli/commands/ydb_cluster.cpp
@@ -21,7 +21,7 @@ TCommandCluster::TCommandCluster()
AddCommand(std::make_unique<NDynamicConfig::TCommandConfig>(false, true));
AddCommand(std::make_unique<TCommandClusterDump>());
AddCommand(std::make_unique<TCommandClusterRestore>());
- AddHiddenCommand(std::make_unique<TCommandBridge>(true));
+ AddCommand(std::make_unique<TCommandBridge>(true));
}
TCommandClusterBootstrap::TCommandClusterBootstrap()