mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
[EPM] Use higher priority than default templates (#70640)
* Use higher priority than default templates * Fixing the jest tests
This commit is contained in:
parent
23ea7acb15
commit
20237b8d5b
2 changed files with 8 additions and 5 deletions
|
@ -2,7 +2,7 @@
|
|||
|
||||
exports[`tests loading base.yml: base.yml 1`] = `
|
||||
{
|
||||
"priority": 1,
|
||||
"priority": 200,
|
||||
"index_patterns": [
|
||||
"foo-*"
|
||||
],
|
||||
|
@ -105,7 +105,7 @@ exports[`tests loading base.yml: base.yml 1`] = `
|
|||
|
||||
exports[`tests loading coredns.logs.yml: coredns.logs.yml 1`] = `
|
||||
{
|
||||
"priority": 1,
|
||||
"priority": 200,
|
||||
"index_patterns": [
|
||||
"foo-*"
|
||||
],
|
||||
|
@ -208,7 +208,7 @@ exports[`tests loading coredns.logs.yml: coredns.logs.yml 1`] = `
|
|||
|
||||
exports[`tests loading system.yml: system.yml 1`] = `
|
||||
{
|
||||
"priority": 1,
|
||||
"priority": 200,
|
||||
"index_patterns": [
|
||||
"whatsthis-*"
|
||||
],
|
||||
|
|
|
@ -247,8 +247,11 @@ function getBaseTemplate(
|
|||
packageName: string
|
||||
): IndexTemplate {
|
||||
return {
|
||||
// This takes precedence over all index templates installed with the 'base' package
|
||||
priority: 1,
|
||||
// This takes precedence over all index templates installed by ES by default (logs-*-* and metrics-*-*)
|
||||
// if this number is lower than the ES value (which is 100) this template will never be applied when a data stream
|
||||
// is created. I'm using 200 here to give some room for users to create their own template and fit it between the
|
||||
// default and the one the ingest manager uses.
|
||||
priority: 200,
|
||||
// To be completed with the correct index patterns
|
||||
index_patterns: [`${templateName}-*`],
|
||||
template: {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue