Skip to content

fix: remove usage of deprecated function aws.EndpointResolverWithOptionsFunc#3700

Merged
rchincha merged 1 commit intoproject-zot:mainfrom
andaaron:dynamodb2
Jan 15, 2026
Merged

fix: remove usage of deprecated function aws.EndpointResolverWithOptionsFunc#3700
rchincha merged 1 commit intoproject-zot:mainfrom
andaaron:dynamodb2

Conversation

@andaaron
Copy link
Copy Markdown
Contributor

See also #2888

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@codecov
Copy link
Copy Markdown

codecov bot commented Jan 13, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 91.58%. Comparing base (708adf6) to head (4c2996f).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3700      +/-   ##
==========================================
- Coverage   91.58%   91.58%   -0.01%     
==========================================
  Files         186      186              
  Lines       26499    26490       -9     
==========================================
- Hits        24270    24261       -9     
  Misses       1444     1444              
  Partials      785      785              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@andaaron andaaron marked this pull request as ready for review January 13, 2026 11:39
@andaaron andaaron requested a review from rchincha as a code owner January 13, 2026 11:39
@andaaron andaaron requested a review from Copilot January 13, 2026 11:39
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR replaces the deprecated aws.EndpointResolverWithOptionsFunc with the newer BaseEndpoint option for configuring custom AWS service endpoints in DynamoDB and Secrets Manager clients.

Changes:

  • Removes deprecated endpoint resolver implementation and associated //nolint: staticcheck comments
  • Implements endpoint configuration using the BaseEndpoint field in client options
  • Updates test files to use the new endpoint configuration pattern

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated no comments.

Show a summary per file
File Description
pkg/storage/cache/dynamodb.go Replaces deprecated endpoint resolver with BaseEndpoint configuration for DynamoDB cache client
pkg/meta/dynamodb/parameters.go Updates GetDynamoClient function to use BaseEndpoint instead of deprecated resolver
pkg/meta/dynamodb/dynamodb_test.go Modifies test to configure endpoint using BaseEndpoint option
pkg/meta/dynamodb/dynamodb_internal_test.go Updates multiple test cases to use BaseEndpoint for endpoint configuration
pkg/extensions/imagetrust/image_trust.go Migrates Secrets Manager client creation to use BaseEndpoint option

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

…onsFunc

Signed-off-by: Andrei Aaron <andreifdaaron@gmail.com>
Copy link
Copy Markdown
Contributor

@vrajashkr vrajashkr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@rchincha rchincha merged commit 7c90645 into project-zot:main Jan 15, 2026
44 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants