Skip to content

Commit 68f8abc

Browse files
authored
Add configuration version in configs_dispatcher page (#15530)
1 parent d1391d4 commit 68f8abc

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

ydb/core/cms/console/configs_dispatcher.cpp

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -534,6 +534,16 @@ void TConfigsDispatcher::Handle(TEvInterconnect::TEvNodesInfo::TPtr &ev)
534534
}
535535
}
536536
}
537+
538+
DIV_CLASS("alert alert-info") {
539+
str << "<strong>Configuration version: </strong>";
540+
if (Labels.contains("config_version")) {
541+
str << Labels.at("config_version");
542+
} else {
543+
str << "unknown";
544+
}
545+
}
546+
537547
DIV_CLASS("tab-left") {
538548
COLLAPSED_REF_CONTENT("node-labels", "Node labels") {
539549
PRE() {

ydb/core/config/init/init_impl.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1402,6 +1402,7 @@ class TInitialConfiguratorImpl
14021402
configsDispatcherInitInfo.StartupConfigYaml = appConfig.GetStartupConfigYaml();
14031403
configsDispatcherInitInfo.ItemsServeRules = std::monostate{},
14041404
configsDispatcherInitInfo.Labels = Labels;
1405+
configsDispatcherInitInfo.Labels["config_version"] = appConfig.GetConfigDirPath() ? "v2" : "v1";
14051406
configsDispatcherInitInfo.DebugInfo = TDebugInfo {
14061407
.InitInfo = InitDebug.ConfigTransformInfo,
14071408
};

0 commit comments

Comments
 (0)