Skip to content

Commit

Permalink
renaming
Browse files Browse the repository at this point in the history
  • Loading branch information
gsantoro committed Jan 30, 2024
1 parent 550bafc commit 798bcd9
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 10 deletions.
3 changes: 1 addition & 2 deletions x-pack/plugins/fleet/server/constants/fleet_es_assets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@ export const FLEET_AGENT_POLICIES_SCHEMA_VERSION = '1.1.1';

export const FLEET_FINAL_PIPELINE_ID = '.fleet_final_pipeline-1';

export const FLEET_ECS_MAPPINGS_COMPONENT_TEMPLATE_NAME = 'ecs@mappings';

export const FLEET_GLOBALS_COMPONENT_TEMPLATE_NAME = '.fleet_globals-1';

export const FLEET_GLOBALS_COMPONENT_TEMPLATE_CONTENT = {
Expand Down Expand Up @@ -86,6 +84,7 @@ export const FLEET_COMPONENT_TEMPLATES = [
export const STACK_COMPONENT_TEMPLATE_LOGS_SETTINGS = `logs@settings`;
export const STACK_COMPONENT_TEMPLATE_METRICS_SETTINGS = `metrics@settings`;
export const STACK_COMPONENT_TEMPLATE_METRICS_TSDB_SETTINGS = `metrics@tsdb-settings`;
export const STACK_COMPONENT_TEMPLATE_ECS_MAPPINGS = 'ecs@mappings';

export const STACK_COMPONENT_TEMPLATES = [
STACK_COMPONENT_TEMPLATE_LOGS_SETTINGS,
Expand Down
2 changes: 1 addition & 1 deletion x-pack/plugins/fleet/server/constants/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ export {
} from '../../common/constants';

export {
FLEET_ECS_MAPPINGS_COMPONENT_TEMPLATE_NAME,
STACK_COMPONENT_TEMPLATE_ECS_MAPPINGS,
FLEET_GLOBALS_COMPONENT_TEMPLATE_NAME,
FLEET_GLOBALS_COMPONENT_TEMPLATE_CONTENT,
FLEET_AGENT_ID_VERIFY_COMPONENT_TEMPLATE_NAME,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import { processFields } from '../../fields/field';
import type { Field } from '../../fields/field';
import {
FLEET_COMPONENT_TEMPLATES,
FLEET_ECS_MAPPINGS_COMPONENT_TEMPLATE_NAME,
STACK_COMPONENT_TEMPLATE_ECS_MAPPINGS,
FLEET_GLOBALS_COMPONENT_TEMPLATE_NAME,
} from '../../../../constants';

Expand Down Expand Up @@ -83,7 +83,7 @@ describe('EPM template', () => {
expect(template.composed_of).toStrictEqual([
'logs@settings',
...composedOfTemplates,
FLEET_ECS_MAPPINGS_COMPONENT_TEMPLATE_NAME,
STACK_COMPONENT_TEMPLATE_ECS_MAPPINGS,
...FLEET_COMPONENT_TEMPLATES_NAMES,
]);
});
Expand All @@ -103,7 +103,7 @@ describe('EPM template', () => {
expect(template.composed_of).toStrictEqual([
'metrics@tsdb-settings',
...composedOfTemplates,
FLEET_ECS_MAPPINGS_COMPONENT_TEMPLATE_NAME,
STACK_COMPONENT_TEMPLATE_ECS_MAPPINGS,
...FLEET_COMPONENT_TEMPLATES_NAMES,
]);
});
Expand All @@ -128,7 +128,7 @@ describe('EPM template', () => {
expect(template.composed_of).toStrictEqual([
'logs@settings',
...composedOfTemplates,
FLEET_ECS_MAPPINGS_COMPONENT_TEMPLATE_NAME,
STACK_COMPONENT_TEMPLATE_ECS_MAPPINGS,
FLEET_GLOBALS_COMPONENT_TEMPLATE_NAME,
]);
});
Expand All @@ -147,7 +147,7 @@ describe('EPM template', () => {
});
expect(template.composed_of).toStrictEqual([
'logs@settings',
FLEET_ECS_MAPPINGS_COMPONENT_TEMPLATE_NAME,
STACK_COMPONENT_TEMPLATE_ECS_MAPPINGS,
...FLEET_COMPONENT_TEMPLATES_NAMES,
]);
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import type {
import { appContextService } from '../../..';
import { getRegistryDataStreamAssetBaseName } from '../../../../../common/services';
import {
FLEET_ECS_MAPPINGS_COMPONENT_TEMPLATE_NAME,
STACK_COMPONENT_TEMPLATE_ECS_MAPPINGS,
FLEET_GLOBALS_COMPONENT_TEMPLATE_NAME,
FLEET_AGENT_ID_VERIFY_COMPONENT_TEMPLATE_NAME,
STACK_COMPONENT_TEMPLATE_LOGS_SETTINGS,
Expand Down Expand Up @@ -114,7 +114,7 @@ export function getTemplate({
template.composed_of = [
...esBaseComponents,
...(template.composed_of || []),
FLEET_ECS_MAPPINGS_COMPONENT_TEMPLATE_NAME,
STACK_COMPONENT_TEMPLATE_ECS_MAPPINGS,
FLEET_GLOBALS_COMPONENT_TEMPLATE_NAME,
...(appContextService.getConfig()?.agentIdVerificationEnabled
? [FLEET_AGENT_ID_VERIFY_COMPONENT_TEMPLATE_NAME]
Expand Down

0 comments on commit 798bcd9

Please sign in to comment.