From f06d1598cbdecb3b4d75347a6f706b9525470cf1 Mon Sep 17 00:00:00 2001 From: Gauthier Loutsch <gauthier.loutsch@meltwater.com> Date: Thu, 27 Jun 2024 10:16:00 +0200 Subject: [PATCH] Set `cluster.routing.allocation.enable` as a string parameter --- es/resource_elasticsearch_cluster_settings.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/es/resource_elasticsearch_cluster_settings.go b/es/resource_elasticsearch_cluster_settings.go index 1a622fff..a7ab040b 100644 --- a/es/resource_elasticsearch_cluster_settings.go +++ b/es/resource_elasticsearch_cluster_settings.go @@ -20,15 +20,17 @@ import ( var ( stringClusterSettings = []string{ + "action.auto_create_index", + "cluster.info.update.interval", + "cluster.no_master_block", "cluster.persistent_tasks.allocation.enable", "cluster.persistent_tasks.allocation.recheck_interval", - "cluster.info.update.interval", "cluster.routing.allocation.allow_rebalance", "cluster.routing.allocation.awareness.attributes", "cluster.routing.allocation.disk.watermark.high", "cluster.routing.allocation.disk.watermark.low", + "cluster.routing.allocation.enable", "cluster.routing.rebalance.enable", - "cluster.no_master_block", "indices.breaker.fielddata.limit", "indices.breaker.request.limit", "indices.breaker.total.limit", @@ -36,7 +38,6 @@ var ( "network.breaker.inflight_requests.limit", "script.max_compilations_rate", "search.default_search_timeout", - "action.auto_create_index", } intClusterSettings = []string{ "cluster.max_shards_per_node", @@ -62,7 +63,6 @@ var ( "cluster.indices.close.enable", "cluster.routing.allocation.disk.include_relocations", "cluster.routing.allocation.disk.threshold_enabled", - "cluster.routing.allocation.enable", "cluster.routing.allocation.same_shard.host", "action.destructive_requires_name", }