Skip to content

Gh 26 switch to official sdk#283

Draft
zampettim wants to merge 12 commits intoopensearch-project:mainfrom
zampettim:gh-26-switch-to-official-sdk
Draft

Gh 26 switch to official sdk#283
zampettim wants to merge 12 commits intoopensearch-project:mainfrom
zampettim:gh-26-switch-to-official-sdk

Conversation

@zampettim
Copy link

@zampettim zampettim commented Feb 19, 2026

Description

Updates to use the official opensearch-go/v4 SDK as well as moves to the aws-go-sdk-V2.
All of the tests are passing, and from what I can see, the functionality remains the same.

Issues Resolved

gh-26 and gh-151

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Signed-off-by: Marc Zampetti <zampettim@users.noreply.github.com>
Signed-off-by: Marc Zampetti <zampettim@users.noreply.github.com>
Signed-off-by: Marc Zampetti <zampettim@users.noreply.github.com>
Signed-off-by: Marc Zampetti <zampettim@users.noreply.github.com>
Signed-off-by: Marc Zampetti <zampettim@users.noreply.github.com>
Migrated resources:
- component_template.go
- composable_index_template.go
- index_template.go
- data_stream.go
- dashboard_tenant.go
- snapshot_repository.go
- cluster_settings.go
- script.go
- ingest_pipeline.go (with SDK limitation workaround)

Also updated:
- data_stream_test.go helper functions
- ingest_pipeline_test.go to use new SDK client
- Added comment documenting ingest pipeline SDK limitation

All migrated resources now use getOpenSearchClient() and
opensearch-go/v4 API calls instead of olivere/elastic.

Known limitation: Ingest pipeline uses raw HTTP due to SDK
struct missing 'version' field (documented in code comment).

Signed-off-by: Marc Zampetti <zampettim@users.noreply.github.com>
…edge cases, but need to be addressed.

Signed-off-by: Marc Zampetti <zampettim@users.noreply.github.com>
Signed-off-by: Marc Zampetti <zampettim@users.noreply.github.com>
@zampettim zampettim force-pushed the gh-26-switch-to-official-sdk branch from 6c8e4e4 to a8fcd0e Compare February 20, 2026 00:10
… client

Signed-off-by: Marc Zampetti <zampettim@users.noreply.github.com>
Signed-off-by: Marc Zampetti <zampettim@users.noreply.github.com>
…1.24

Signed-off-by: Marc Zampetti <zampettim@users.noreply.github.com>
…arch into opensearch-projectgh-26-switch-to-official-sdk

Signed-off-by: Marc Zampetti <zampettim@users.noreply.github.com>
@zampettim zampettim marked this pull request as ready for review February 20, 2026 00:46
@zampettim zampettim marked this pull request as draft February 23, 2026 21:18
@zampettim
Copy link
Author

Converting this back to draft while I review few things I've found as I continue on this effort.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

1 participant