Commit f27a82f
committed
fix: expose IncludeDedicatedClusterManagers in opensearch.Config
The documentation showed an example using IncludeDedicatedClusterManagers
in opensearch.Config.Transport, but this didn't work because:
- Transport expects http.RoundTripper, not opensearchtransport.Config
- IncludeDedicatedClusterManagers was only available in the low-level
transport config, not exposed through the high-level API
Changes:
- Add IncludeDedicatedClusterManagers field to opensearch.Config
- Pass field through to transport config in NewClient()
- Fix documentation example to use the new direct configuration
- Update terminology from "cluster master" to "cluster manager"
Fixes broken documentation example and provides proper API access to
dedicated cluster manager node inclusion settings.
Signed-off-by: Sean Chittenden <sean.chittenden@crowdstrike.com>1 parent d8de55f commit f27a82f
2 files changed
Lines changed: 14 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
94 | 94 | | |
95 | 95 | | |
96 | 96 | | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
101 | 100 | | |
102 | | - | |
103 | | - | |
104 | | - | |
| 101 | + | |
| 102 | + | |
105 | 103 | | |
106 | 104 | | |
107 | 105 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
91 | 91 | | |
92 | 92 | | |
93 | 93 | | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
94 | 101 | | |
95 | 102 | | |
96 | 103 | | |
| |||
181 | 188 | | |
182 | 189 | | |
183 | 190 | | |
| 191 | + | |
| 192 | + | |
184 | 193 | | |
185 | 194 | | |
186 | 195 | | |
| |||
0 commit comments