chore: update to aws-sdk-go-v2#527
Draft
tekenstam wants to merge 9 commits into
Draft
Conversation
Signed-off-by: Todd Ekenstam <Todd_Ekenstam@intuit.com>
tekenstam
force-pushed
the
update-aws-sdk-go-v2
branch
from
August 15, 2025 01:16
8b3932b to
bfdadfd
Compare
added 6 commits
August 14, 2025 22:51
…ers/upgrade.go and tests; integrate early cordon annotation logic and orphaned in-progress cleanup (keep AWS SDK v2 types)
…chunking covered elsewhere)
…unused) Signed-off-by: Todd Ekenstam <Todd_Ekenstam@intuit.com>
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## master #527 +/- ##
==========================================
+ Coverage 36.00% 45.63% +9.63%
==========================================
Files 14 14
Lines 1400 1433 +33
==========================================
+ Hits 504 654 +150
+ Misses 840 724 -116
+ Partials 56 55 -1
Continue to review full report in Codecov by Harness.
🚀 New features to boost your workflow:
|
ZihanJiang96
approved these changes
Mar 23, 2026
Resolved conflict in go.mod: keep aws-sdk-go-v2 packages from this branch and update go-logr to v1.4.3 from master. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> Signed-off-by: Todd Ekenstam <todd_ekenstam@intuit.com>
tekenstam
marked this pull request as draft
March 24, 2026 00:07
tekenstam
marked this pull request as draft
March 24, 2026 00:07
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Migrate upgrade-manager to AWS SDK Go v2
Overview
This PR completes the migration from AWS SDK Go v1 to v2, updating all dependencies, core application logic, and test infrastructure to be fully compatible with the new SDK version.
Changes Made
Dependencies
go.mod: Replacedgithub.com/aws/aws-sdk-gov1 with v2 modules:github.com/aws/aws-sdk-go-v2github.com/aws/aws-sdk-go-v2/configgithub.com/aws/aws-sdk-go-v2/service/autoscalinggithub.com/aws/aws-sdk-go-v2/service/ec2github.com/aws/smithy-gogithub.com/keikoproj/aws-sdk-go-cache(v1 specific)Core Application Changes
main.go: Updated AWS client initialization to use v2'sconfig.LoadDefaultConfig()andNewFromConfig()patternscontext.TODO()Pagesmethods to direct API calls for better testability*int64→*int32forDesiredCapacity,*string→ enum types forLifecycleStateretry.goTesting Infrastructure Overhaul
Following AWS SDK Go v2 testing best practices:
interfaces.gowithAutoScalingAPIandEC2APIinterfaces for dependency injectionAmazonClientSet: Now uses interfaces instead of concrete client typesFiles Modified
go.mod/go.sum- Dependency updatesmain.go- Client initializationcontrollers/providers/aws/- All AWS provider files migrated to v2controllers/providers/aws/interfaces.go- NEW: Interface definitions for testingcontrollers/helpers_test.go- Updated mock implementationscontrollers/upgrade_test.go- Restored test client assignmentscontrollers/cloud.go- Updated type definitionscontrollers/rollingupgrade_controller.go- Removed cache configcontrollers/common/log/retry.go- DELETED: No longer needed with v2's built-in retryTesting
Breaking Changes
CacheConfigfield fromRollingUpgradeReconciler(cache functionality built into v2)Migration Benefits