-
Notifications
You must be signed in to change notification settings - Fork 8.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Security Solution][Ingest Manager][Endpoint] Optional ingest manager #71198
Changes from all commits
cd269b3
dcf65a4
c15576c
b46b9e0
824d637
fdc3329
19cc454
eb60b1b
a4b6218
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -324,10 +324,12 @@ export class Plugin implements IPlugin<PluginSetup, PluginStart, SetupPlugins, S | |
|
||
public start(core: CoreStart, plugins: StartPlugins) { | ||
KibanaServices.init({ ...core, ...plugins, kibanaVersion: this.kibanaVersion }); | ||
plugins.ingestManager.registerPackageConfigComponent( | ||
'endpoint', | ||
ConfigureEndpointPackageConfig | ||
); | ||
if (plugins.ingestManager) { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think the problem with tests failing without this conditional should have been caught by typescript. Is it because we should have have also set the @paul-tavares @XavierM @kevinlog thoughts? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @peluja1012 yeah, that sounds like it needs to be set to optional in the Type |
||
plugins.ingestManager.registerPackageConfigComponent( | ||
'endpoint', | ||
ConfigureEndpointPackageConfig | ||
); | ||
} | ||
|
||
return {}; | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is a new feature from kibana platform, see #70911
This allows us to still load the shared code that we import from
ingestManager
without the plugin actually being loaded. So, since"ingestManager"
is optional we can either load it or not and the Administration section will handle accordingly.There are existing tests that already checked the behavior of the Admin section with or without ingestManager either within Space or if the plugin is loaded at all.