diff --git a/x-pack/plugins/observability_solution/inventory/server/config.ts b/x-pack/plugins/observability_solution/inventory/server/config.ts deleted file mode 100644 index 2d6d7604b40e1..0000000000000 --- a/x-pack/plugins/observability_solution/inventory/server/config.ts +++ /dev/null @@ -1,14 +0,0 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Elastic License - * 2.0; you may not use this file except in compliance with the Elastic License - * 2.0. - */ - -import { schema, type TypeOf } from '@kbn/config-schema'; - -export const config = schema.object({ - enabled: schema.boolean({ defaultValue: false }), -}); - -export type InventoryConfig = TypeOf; diff --git a/x-pack/plugins/observability_solution/inventory/server/index.ts b/x-pack/plugins/observability_solution/inventory/server/index.ts index ad878918bad47..f24d561068c77 100644 --- a/x-pack/plugins/observability_solution/inventory/server/index.ts +++ b/x-pack/plugins/observability_solution/inventory/server/index.ts @@ -4,12 +4,7 @@ * 2.0; you may not use this file except in compliance with the Elastic License * 2.0. */ -import type { - PluginConfigDescriptor, - PluginInitializer, - PluginInitializerContext, -} from '@kbn/core/server'; -import type { InventoryConfig } from './config'; +import type { PluginInitializer, PluginInitializerContext } from '@kbn/core/server'; import { InventoryPlugin } from './plugin'; import type { InventoryServerSetup, @@ -22,16 +17,10 @@ export type { InventoryServerRouteRepository } from './routes/get_global_invento export type { InventoryServerSetup, InventoryServerStart }; -import { config as configSchema } from './config'; - -export const config: PluginConfigDescriptor = { - schema: configSchema, -}; - export const plugin: PluginInitializer< InventoryServerSetup, InventoryServerStart, InventorySetupDependencies, InventoryStartDependencies -> = async (pluginInitializerContext: PluginInitializerContext) => +> = async (pluginInitializerContext: PluginInitializerContext) => new InventoryPlugin(pluginInitializerContext);