From 0ee3c9891f14d2a8f7db81c08832f8f81c695745 Mon Sep 17 00:00:00 2001 From: Anna Lushnikova Date: Wed, 2 Oct 2024 13:36:19 -0400 Subject: [PATCH] [databases]: add a missing field to Opensearch advanced configuration (#735) * [databases]: add a missing field to Opensearch advanced configuration * fix indention --- databases.go | 1 + databases_test.go | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/databases.go b/databases.go index a31738e..4295492 100644 --- a/databases.go +++ b/databases.go @@ -724,6 +724,7 @@ type OpensearchConfig struct { ScriptMaxCompilationsRate *string `json:"script_max_compilations_rate,omitempty"` ClusterRoutingAllocationNodeConcurrentRecoveries *int `json:"cluster_routing_allocation_node_concurrent_recoveries,omitempty"` ReindexRemoteWhitelist []string `json:"reindex_remote_whitelist,omitempty"` + PluginsAlertingFilterByBackendRolesEnabled *bool `json:"plugins_alerting_filter_by_backend_roles_enabled,omitempty"` } type databaseUserRoot struct { diff --git a/databases_test.go b/databases_test.go index 78e0a0a..1b2e7f0 100644 --- a/databases_test.go +++ b/databases_test.go @@ -3209,7 +3209,8 @@ func TestDatabases_GetConfigOpensearch(t *testing.T) { "override_main_response_version": false, "script_max_compilations_rate": "use-context", "cluster_max_shards_per_node": 0, - "cluster_routing_allocation_node_concurrent_recoveries": 2 + "cluster_routing_allocation_node_concurrent_recoveries": 2, + "plugins_alerting_filter_by_backend_roles_enabled": true } }` @@ -3251,6 +3252,7 @@ func TestDatabases_GetConfigOpensearch(t *testing.T) { ScriptMaxCompilationsRate: PtrTo("use-context"), ClusterRoutingAllocationNodeConcurrentRecoveries: PtrTo(2), ReindexRemoteWhitelist: nil, + PluginsAlertingFilterByBackendRolesEnabled: PtrTo(true), } )