Skip to content

chore: remove aws-sdk-go-cache dependency#272

Draft
tekenstam wants to merge 2 commits into
masterfrom
chore/remove-aws-sdk-go-cache
Draft

chore: remove aws-sdk-go-cache dependency#272
tekenstam wants to merge 2 commits into
masterfrom
chore/remove-aws-sdk-go-cache

Conversation

@tekenstam

Copy link
Copy Markdown
Member

Summary

Remove the keikoproj/aws-sdk-go-cache library which is built on AWS SDK for Go v1 (EOL July 2025). AWS API rate limiting has not been an issue in practice, and the standard SDK retry mode (token-bucket + exponential backoff) handles throttling without explicit response caching.

Changes

  • Remove cache import and NewCacheConfig usage from cmd/common.go, cmd/serve.go
  • Simplify newELBv2Client/newELBClient to drop cacheCfg parameter
  • Remove CacheConfig field from pkg/service/manager.ManagerContext
  • Remove NodeAgeCacheTTL constant and cache-flush block from pkg/service/server.go
  • Remove NodeAgeCacheTTL override from pkg/service/server_test.go
  • Run go mod tidy to drop keikoproj/aws-sdk-go-cache from go.mod/go.sum

Closes #271

Test plan

  • go build ./... passes
  • go test ./... passes (pre-existing Test_Metrics failure unrelated to this change)
  • No remaining references to aws-sdk-go-cache, CacheConfig, cacheCfg, or NodeAgeCacheTTL

🤖 Generated with Claude Code

Remove the keikoproj/aws-sdk-go-cache library which is built on AWS
SDK for Go v1 (EOL July 2025). AWS API rate limiting has not been an
issue in practice, and the standard SDK retry mode handles throttling
without explicit response caching.

- Remove cache import and config from cmd/common.go, cmd/serve.go
- Simplify newELBv2Client/newELBClient to drop cacheCfg parameter
- Remove CacheConfig field from pkg/service/manager.ManagerContext
- Remove NodeAgeCacheTTL constant and cache-flush block from server.go
- Remove NodeAgeCacheTTL override from server_test.go
- Run go mod tidy to drop keikoproj/aws-sdk-go-cache from go.mod/go.sum

Closes #271

Signed-off-by: Todd Ekenstam <todd_ekenstam@intuit.com>
@tekenstam tekenstam requested review from a team as code owners March 23, 2026 16:41
@codecov-commenter

codecov-commenter commented Mar 23, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 65.07%. Comparing base (7ef9648) to head (13d1b56).

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #272      +/-   ##
==========================================
+ Coverage   64.94%   65.07%   +0.13%     
==========================================
  Files          15       15              
  Lines        1181     1174       -7     
==========================================
- Hits          767      764       -3     
+ Misses        339      336       -3     
+ Partials       75       74       -1     

☔ 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.

@tekenstam tekenstam marked this pull request as draft March 25, 2026 13:49
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.

chore: remove aws-sdk-go-cache dependency

2 participants