Skip to content

Commit

Permalink
Remove config in InventoryPlugin
Browse files Browse the repository at this point in the history
  • Loading branch information
iblancof committed Sep 18, 2024
1 parent 660929c commit 3a0b5d7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 27 deletions.
14 changes: 0 additions & 14 deletions x-pack/plugins/observability_solution/inventory/server/config.ts

This file was deleted.

15 changes: 2 additions & 13 deletions x-pack/plugins/observability_solution/inventory/server/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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<InventoryConfig> = {
schema: configSchema,
};

export const plugin: PluginInitializer<
InventoryServerSetup,
InventoryServerStart,
InventorySetupDependencies,
InventoryStartDependencies
> = async (pluginInitializerContext: PluginInitializerContext<InventoryConfig>) =>
> = async (pluginInitializerContext: PluginInitializerContext) =>
new InventoryPlugin(pluginInitializerContext);

0 comments on commit 3a0b5d7

Please sign in to comment.