From cee4831a801c929a287dbfbe9bb600614b7abc56 Mon Sep 17 00:00:00 2001 From: neptunian Date: Wed, 15 Jul 2020 16:18:13 -0400 Subject: [PATCH] rename ilm policy to remove -default --- .../template/__snapshots__/template.test.ts.snap | 6 +++--- .../server/services/epm/elasticsearch/template/template.ts | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/x-pack/plugins/ingest_manager/server/services/epm/elasticsearch/template/__snapshots__/template.test.ts.snap b/x-pack/plugins/ingest_manager/server/services/epm/elasticsearch/template/__snapshots__/template.test.ts.snap index 47817a29b2a17..219c2de675359 100644 --- a/x-pack/plugins/ingest_manager/server/services/epm/elasticsearch/template/__snapshots__/template.test.ts.snap +++ b/x-pack/plugins/ingest_manager/server/services/epm/elasticsearch/template/__snapshots__/template.test.ts.snap @@ -10,7 +10,7 @@ exports[`tests loading base.yml: base.yml 1`] = ` "settings": { "index": { "lifecycle": { - "name": "logs-default" + "name": "logs" }, "codec": "best_compression", "mapping": { @@ -113,7 +113,7 @@ exports[`tests loading coredns.logs.yml: coredns.logs.yml 1`] = ` "settings": { "index": { "lifecycle": { - "name": "logs-default" + "name": "logs" }, "codec": "best_compression", "mapping": { @@ -216,7 +216,7 @@ exports[`tests loading system.yml: system.yml 1`] = ` "settings": { "index": { "lifecycle": { - "name": "metrics-default" + "name": "metrics" }, "codec": "best_compression", "mapping": { diff --git a/x-pack/plugins/ingest_manager/server/services/epm/elasticsearch/template/template.ts b/x-pack/plugins/ingest_manager/server/services/epm/elasticsearch/template/template.ts index cb1d692c43844..876573f2270ea 100644 --- a/x-pack/plugins/ingest_manager/server/services/epm/elasticsearch/template/template.ts +++ b/x-pack/plugins/ingest_manager/server/services/epm/elasticsearch/template/template.ts @@ -262,7 +262,7 @@ function getBaseTemplate( index: { // ILM Policy must be added here, for now point to the default global ILM policy name lifecycle: { - name: `${type}-default`, + name: type, }, // What should be our default for the compression? codec: 'best_compression',