mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
[Watcher] Disable watcher using contextRef (#163407)
This commit is contained in:
parent
c249c30d3b
commit
ba3284ea3b
2 changed files with 12 additions and 1 deletions
|
@ -14,6 +14,13 @@ export const plugin = (ctx: PluginInitializerContext) => new WatcherServerPlugin
|
|||
|
||||
export const config = {
|
||||
schema: schema.object({
|
||||
enabled: schema.boolean({ defaultValue: true }),
|
||||
enabled: schema.conditional(
|
||||
schema.contextRef('serverless'),
|
||||
true,
|
||||
// Watcher is disabled in serverless; refer to the serverless.yml file as the source of truth
|
||||
// We take this approach in order to have a central place (serverless.yml) to view disabled plugins across Kibana
|
||||
schema.boolean({ defaultValue: true }),
|
||||
schema.never()
|
||||
),
|
||||
}),
|
||||
};
|
||||
|
|
|
@ -50,6 +50,10 @@ export default function ({ getPageObject, getService }: FtrProviderContext) {
|
|||
appName: 'License Management',
|
||||
url: 'stack/license_management',
|
||||
},
|
||||
{
|
||||
appName: 'Watcher',
|
||||
url: 'insightsAndAlerting/watcher',
|
||||
},
|
||||
];
|
||||
|
||||
DISABLED_PLUGINS.forEach(({ appName, url }) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue