Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
17 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/cli/setup/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import { kibanaPackageJson } from '@kbn/repo-info';

import type { Logger } from '@kbn/core/server';
import { AgentManager, ClusterClient } from '@kbn/core-elasticsearch-client-server-internal';
import { configSchema } from '@kbn/core-elasticsearch-server-internal';
import { configSchema, getRequestHandlerFactory } from '@kbn/core-elasticsearch-server-internal';
import { ElasticsearchService } from '@kbn/interactive-setup-plugin/server/elasticsearch_service';
import { KibanaConfigWriter } from '@kbn/interactive-setup-plugin/server/kibana_config_writer';
import type { EnrollmentToken } from '@kbn/interactive-setup-plugin/common';
Expand Down Expand Up @@ -54,6 +54,8 @@ export const elasticsearch = new ElasticsearchService(logger, kibanaPackageJson.
dnsCacheTtlInSeconds: config?.dnsCacheTtl?.asSeconds() ?? 0,
}),
kibanaVersion: kibanaPackageJson.version,
// The CLI runs on-prem only; CPS is disabled so project_routing is stripped.
onRequestHandlerFactory: getRequestHandlerFactory(false),
});
},
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
*/

export { ScopedClusterClient } from './src/scoped_cluster_client';
export { ClusterClient } from './src/cluster_client';
export { ClusterClient, type OnRequestHandlerFactory } from './src/cluster_client';
export { configureClient } from './src/configure_client';
export { type AgentStatsProvider, AgentManager, type NetworkAgent } from './src/agent_manager';
export {
Expand Down
Loading