Skip to content

Commit

Permalink
remove unnecessary config validations (#78527) (#78595)
Browse files Browse the repository at this point in the history
  • Loading branch information
mshustov authored Sep 28, 2020
1 parent d867236 commit 6b81c84
Showing 1 changed file with 5 additions and 22 deletions.
27 changes: 5 additions & 22 deletions src/legacy/server/config/schema.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,8 @@ export default () =>
prod: Joi.boolean().default(Joi.ref('$prod')),
}).default(),

dev: Joi.object({
basePathProxyTarget: Joi.number().default(5603),
}).default(),

dev: HANDLED_IN_NEW_PLATFORM,
pid: HANDLED_IN_NEW_PLATFORM,

csp: HANDLED_IN_NEW_PLATFORM,

server: Joi.object({
Expand Down Expand Up @@ -126,10 +122,7 @@ export default () =>

ops: Joi.object({
interval: Joi.number().default(5000),
cGroupOverrides: Joi.object().keys({
cpuPath: Joi.string().default(),
cpuAcctPath: Joi.string().default(),
}),
cGroupOverrides: HANDLED_IN_NEW_PLATFORM,
}).default(),

// still used by the legacy i18n mixin
Expand All @@ -140,15 +133,8 @@ export default () =>
}).default(),

path: HANDLED_IN_NEW_PLATFORM,

stats: Joi.object({
maximumWaitTimeForAllCollectorsInS: Joi.number().default(60),
}).default(),

status: Joi.object({
allowAnonymous: Joi.boolean().default(false),
}).default(),

stats: HANDLED_IN_NEW_PLATFORM,
status: HANDLED_IN_NEW_PLATFORM,
map: HANDLED_IN_NEW_PLATFORM,

i18n: Joi.object({
Expand All @@ -164,8 +150,5 @@ export default () =>
autocompleteTimeout: Joi.number().integer().min(1).default(1000),
}).default(),

savedObjects: Joi.object({
maxImportPayloadBytes: Joi.number().default(10485760),
maxImportExportSize: Joi.number().default(10000),
}).default(),
savedObjects: HANDLED_IN_NEW_PLATFORM,
}).default();

0 comments on commit 6b81c84

Please sign in to comment.