Skip to content

Commit

Permalink
Set missing deprecation levels to critical
Browse files Browse the repository at this point in the history
  • Loading branch information
weltenwort committed Nov 4, 2021
1 parent e00691a commit 7fdcffa
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions x-pack/plugins/infra/server/deprecations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ const FIELD_DEPRECATION_FACTORIES: Record<string, (configNames: string[]) => Dep
export const configDeprecations: ConfigDeprecationProvider = ({ deprecate }) => [
...Object.keys(FIELD_DEPRECATION_FACTORIES).map(
(key): ConfigDeprecation =>
(completeConfig, rootPath, addDeprecation) => {
(completeConfig, _rootPath, addDeprecation) => {
const configuredValue = get(completeConfig, `xpack.infra.sources.default.fields.${key}`);
if (typeof configuredValue === 'undefined') {
return completeConfig;
Expand Down Expand Up @@ -179,8 +179,9 @@ export const configDeprecations: ConfigDeprecationProvider = ({ deprecate }) =>
return completeConfig;
}
),
deprecate('sources.default.logAlias', '8.0.0'),
deprecate('sources.default.metricAlias', '8.0.0'),
deprecate('sources.default.logAlias', '8.0.0', { level: 'critical' }),
deprecate('sources.default.metricAlias', '8.0.0', { level: 'critical' }),
deprecate('enabled', '8.0.0', { level: 'critical' }),
];

export const getInfraDeprecationsFactory =
Expand Down

0 comments on commit 7fdcffa

Please sign in to comment.