Add config deprecation for securitySolutionServerless config rename (#161321)

## Summary

Title.
This commit is contained in:
Pierre Gayvallet 2023-07-06 10:02:11 +02:00 committed by GitHub
parent 9d57196a54
commit 7e4e2bbf11
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -20,4 +20,11 @@ export const config: PluginConfigDescriptor<ServerlessSecurityConfig> = {
productTypes: true,
},
schema: configSchema,
deprecations: ({ renameFromRoot }) => [
renameFromRoot(
'xpack.serverless.security.productTypes',
'xpack.securitySolutionServerless.productTypes',
{ silent: true, level: 'warning' }
),
],
};