Skip to content

Commit

Permalink
Use non-ILM template setting up watch history template & ILM disabled (
Browse files Browse the repository at this point in the history
…elastic#39325)

When ILM is disabled and Watcher is setting up the templates and policies for
the watch history indices, it will now use a template that does not have the
`index.lifecycle.name` setting, so that indices are not created with the
setting.

This also adds tests for the behavior, and changes the cluster state used in
these tests to be real instead of mocked.

Resolves elastic#38805
  • Loading branch information
dakrone committed Feb 26, 2019
1 parent a9e86bc commit 38b654c
Show file tree
Hide file tree
Showing 4 changed files with 706 additions and 27 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ public final class WatcherIndexTemplateRegistryField {
// Note: if you change this, also inform the kibana team around the watcher-ui
public static final String INDEX_TEMPLATE_VERSION = "9";
public static final String HISTORY_TEMPLATE_NAME = ".watch-history-" + INDEX_TEMPLATE_VERSION;
public static final String HISTORY_TEMPLATE_NAME_NO_ILM = ".watch-history-no-ilm-" + INDEX_TEMPLATE_VERSION;
public static final String TRIGGERED_TEMPLATE_NAME = ".triggered_watches";
public static final String WATCHES_TEMPLATE_NAME = ".watches";
public static final String[] TEMPLATE_NAMES = new String[] {
Expand Down
Loading

0 comments on commit 38b654c

Please sign in to comment.