Skip to content

Commit

Permalink
[CI] Auto-commit changed files from 'node scripts/eslint --no-cache -…
Browse files Browse the repository at this point in the history
…-fix'
  • Loading branch information
kibanamachine committed Oct 31, 2023
1 parent d84da6f commit f32dbe8
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import { errors } from '@elastic/elasticsearch';
import type { MappingTypeMapping } from '@elastic/elasticsearch/lib/api/types';
import type { ElasticsearchClient, Logger } from '@kbn/core/server';
import { STACK_COMPONENT_TEMPLATE_LOGS_SETTINGS } from '@kbn/fleet-plugin/server/constants';
import {
BENCHMARK_SCORE_INDEX_DEFAULT_NS,
BENCHMARK_SCORE_INDEX_PATTERN,
Expand All @@ -20,15 +21,14 @@ import { latestIndexConfigs } from './latest_indices';
import { IndexConfig, IndexTemplateParams } from './types';

import { CloudSecurityPostureConfig } from '../config';
import { STACK_COMPONENT_TEMPLATE_LOGS_SETTINGS } from '../../../fleet/server/constants';

interface IndexTemplateSettings {
index: {
default_pipeline: string;
codec?: string;
mapping?: {
ignore_malformed: boolean;
}
};
};
lifecycle?: { name: string };
}
Expand Down Expand Up @@ -233,8 +233,8 @@ const updateIndexTemplate = async (
default_pipeline: latestFindingsPipelineIngestConfig.id,
codec: 'best_compression',
mapping: {
ignore_malformed: true
}
ignore_malformed: true,
},
},
lifecycle: { name: '' },
};
Expand All @@ -251,7 +251,7 @@ const updateIndexTemplate = async (
aliases: template?.aliases,
},
_meta,
composed_of: composedOf.filter(ct => ct !== STACK_COMPONENT_TEMPLATE_LOGS_SETTINGS),
composed_of: composedOf.filter((ct) => ct !== STACK_COMPONENT_TEMPLATE_LOGS_SETTINGS),
});

logger.info(`Updated index template successfully [Name: ${indexTemplateName}]`);
Expand Down

0 comments on commit f32dbe8

Please sign in to comment.