Skip to content

[7.x] Make stack.templates.enabled a dynamic setting (#63764)#63833

Merged
dakrone merged 1 commit intoelastic:7.xfrom
dakrone:backport/7.x/pr-63764
Oct 16, 2020
Merged

[7.x] Make stack.templates.enabled a dynamic setting (#63764)#63833
dakrone merged 1 commit intoelastic:7.xfrom
dakrone:backport/7.x/pr-63764

Conversation

@dakrone
Copy link
Copy Markdown
Member

@dakrone dakrone commented Oct 16, 2020

Backports the following commits to 7.x:

* Make stack.templates.enabled a dynamic setting

This change allows the setting for disabling the automatically installed stack templates (the
`logs-*-*`, `metrics-*-*`, and `synthetics-*-*` templates) to be changed dynamically.

As a byproduct, it also moves thes `IndexTemplateRegistry` to use an `initialize()` method so that
constructors are not tempted to use a `this` reference in the constructor (see elastic#37861 for more
information about why to avoid that).

Resolves elastic#62835
@elasticmachine
Copy link
Copy Markdown
Collaborator

Pinging @elastic/es-core-features (:Core/Features/Features)

@elasticmachine elasticmachine added the Team:Data Management (obsolete) DO NOT USE. This team no longer exists. label Oct 16, 2020
@dakrone dakrone merged commit d31e945 into elastic:7.x Oct 16, 2020
@dakrone dakrone deleted the backport/7.x/pr-63764 branch October 16, 2020 17:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport Team:Data Management (obsolete) DO NOT USE. This team no longer exists. v7.11.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants