-
Notifications
You must be signed in to change notification settings - Fork 25k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
After introducing #113505 we need to remove `cluster.logsdb.enabled` from `StackPlugin` and `StackTemplateRegistry`. (cherry picked from commit 487c556) Co-authored-by: Salvatore Campagna <[email protected]>
- Loading branch information
1 parent
47bf5b9
commit 006c274
Showing
7 changed files
with
36 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 0 additions & 19 deletions
19
...k/plugin/core/src/main/java/org/elasticsearch/xpack/cluster/settings/ClusterSettings.java
This file was deleted.
Oops, something went wrong.
26 changes: 0 additions & 26 deletions
26
x-pack/plugin/core/template-resources/src/main/resources/[email protected]
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -35,8 +35,6 @@ | |
import java.util.List; | ||
import java.util.Map; | ||
|
||
import static org.elasticsearch.xpack.cluster.settings.ClusterSettings.CLUSTER_LOGSDB_ENABLED; | ||
|
||
public class StackTemplateRegistry extends IndexTemplateRegistry { | ||
private static final Logger logger = LogManager.getLogger(StackTemplateRegistry.class); | ||
|
||
|
@@ -130,10 +128,10 @@ public StackTemplateRegistry( | |
this.clusterService = clusterService; | ||
this.featureService = featureService; | ||
this.stackTemplateEnabled = STACK_TEMPLATES_ENABLED.get(nodeSettings); | ||
this.componentTemplateConfigs = loadComponentTemplateConfigs(CLUSTER_LOGSDB_ENABLED.get(nodeSettings)); | ||
this.componentTemplateConfigs = loadComponentTemplateConfigs(); | ||
} | ||
|
||
private Map<String, ComponentTemplate> loadComponentTemplateConfigs(boolean logsDbEnabled) { | ||
private Map<String, ComponentTemplate> loadComponentTemplateConfigs() { | ||
final Map<String, ComponentTemplate> componentTemplates = new HashMap<>(); | ||
for (IndexTemplateConfig config : List.of( | ||
new IndexTemplateConfig( | ||
|
@@ -159,7 +157,7 @@ private Map<String, ComponentTemplate> loadComponentTemplateConfigs(boolean logs | |
), | ||
new IndexTemplateConfig( | ||
LOGS_SETTINGS_COMPONENT_TEMPLATE_NAME, | ||
logsDbEnabled ? "/[email protected]" : "/[email protected]", | ||
"/[email protected]", | ||
REGISTRY_VERSION, | ||
TEMPLATE_VERSION_VARIABLE, | ||
Map.of("xpack.stack.template.deprecated", "false") | ||
|