mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 17:28:26 -04:00
[Serverless] Disable ux plugin (#170637)
Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
This commit is contained in:
parent
d398606134
commit
2a01db9d64
6 changed files with 60 additions and 2 deletions
|
@ -147,4 +147,8 @@ xpack.task_manager.requeue_invalid_tasks.enabled: true
|
|||
# Reporting feature
|
||||
xpack.screenshotting.enabled: false
|
||||
xpack.reporting.roles.enabled: false
|
||||
xpack.reporting.statefulSettings.enabled: false
|
||||
xpack.reporting.statefulSettings.enabled: false
|
||||
|
||||
|
||||
# Disabled Observability plugins
|
||||
xpack.ux.enabled: false
|
||||
|
|
19
x-pack/plugins/ux/common/config.ts
Normal file
19
x-pack/plugins/ux/common/config.ts
Normal file
|
@ -0,0 +1,19 @@
|
|||
/*
|
||||
* 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 type { PluginConfigDescriptor } from '@kbn/core/server';
|
||||
import { schema, TypeOf } from '@kbn/config-schema';
|
||||
|
||||
const uxConfig = schema.object({
|
||||
enabled: schema.boolean({ defaultValue: true }),
|
||||
});
|
||||
|
||||
export const config: PluginConfigDescriptor = {
|
||||
schema: uxConfig,
|
||||
};
|
||||
|
||||
export type UXConfig = TypeOf<typeof uxConfig>;
|
|
@ -4,7 +4,7 @@
|
|||
"owner": "@elastic/uptime",
|
||||
"plugin": {
|
||||
"id": "ux",
|
||||
"server": false,
|
||||
"server": true,
|
||||
"browser": true,
|
||||
"configPath": ["xpack", "ux"],
|
||||
"requiredPlugins": [
|
||||
|
|
14
x-pack/plugins/ux/server/index.ts
Normal file
14
x-pack/plugins/ux/server/index.ts
Normal file
|
@ -0,0 +1,14 @@
|
|||
/*
|
||||
* 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 { PluginInitializerContext } from '@kbn/core/server';
|
||||
import { Plugin } from './plugin';
|
||||
|
||||
export const plugin = (initializerContext: PluginInitializerContext) =>
|
||||
new Plugin();
|
||||
|
||||
export { config } from '../common/config';
|
19
x-pack/plugins/ux/server/plugin.ts
Normal file
19
x-pack/plugins/ux/server/plugin.ts
Normal file
|
@ -0,0 +1,19 @@
|
|||
/*
|
||||
* 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 { CoreStart, CoreSetup, Plugin as PluginType } from '@kbn/core/server';
|
||||
|
||||
export class Plugin implements PluginType {
|
||||
constructor() {}
|
||||
|
||||
public setup(core: CoreSetup, plugins: {}) {
|
||||
return {};
|
||||
}
|
||||
|
||||
public start(coreStart: CoreStart, pluginsStart: {}) {}
|
||||
|
||||
public stop() {}
|
||||
}
|
|
@ -7,6 +7,7 @@
|
|||
"../../../typings/**/*",
|
||||
"common/**/*",
|
||||
"public/**/*",
|
||||
"server/**/*",
|
||||
"typings/**/*",
|
||||
"public/**/*.json",
|
||||
],
|
||||
|
@ -40,6 +41,7 @@
|
|||
"@kbn/observability-shared-plugin",
|
||||
"@kbn/shared-ux-router",
|
||||
"@kbn/observability-ai-assistant-plugin",
|
||||
"@kbn/config-schema",
|
||||
],
|
||||
"exclude": [
|
||||
"target/**/*",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue