Migrate from deprecated AWS Account.Status to Account.State field#958
Conversation
AWS is deprecating the Account.Status field and will remove it on September 9, 2026. This change migrates the operator to use the new Account.State field to ensure continued compatibility. Changes: - Upgraded AWS Organizations SDK from v1.34.0 to v1.50.5 - Migrated totalaccountwatcher.go to use account.State instead of account.Status - Updated enum references: AccountStatusActive → AccountStateActive, AccountStatusSuspended → AccountStateSuspended - Updated 31 test fixtures in totalaccountwatcher_test.go - Regenerated CRDs, mocks, and OpenAPI schema The new State field provides the same functionality with additional states (PENDING_ACTIVATION, CLOSED) for better account lifecycle management. Ref: SREP-1856 Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #958 +/- ##
==========================================
+ Coverage 46.38% 46.40% +0.01%
==========================================
Files 46 46
Lines 6812 6814 +2
==========================================
+ Hits 3160 3162 +2
Misses 3319 3319
Partials 333 333
🚀 New features to boost your workflow:
|
|
/lgtm |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: AlexSmithGH, BATMAN-JD The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
@BATMAN-JD: all tests passed! Full PR test history. Your PR dashboard. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here. |
AWS is deprecating the Account.Status field and will remove it on September 9, 2026. This change migrates the operator to use the new Account.State field to ensure continued compatibility.
Changes:
Upgraded AWS Organizations SDK from v1.34.0 to v1.50.5
Migrated totalaccountwatcher.go to use account.State instead of account.Status
Updated enum references: AccountStatusActive → AccountStateActive, AccountStatusSuspended → AccountStateSuspended
Updated 31 test fixtures in totalaccountwatcher_test.go
Regenerated CRDs, mocks, and OpenAPI schema
The new State field provides the same functionality with additional states (PENDING_ACTIVATION, CLOSED) for better account lifecycle management.
Ref: SREP-1856
What is being added?
Is this a fix for a bug? What's the bug? Is this a new feature? Please describe it. Is this just a small typo fix? That's fine too!
Checklist before requesting review
I have tested this locally
I have included unit tests
I have updated any corresponding documentation
Steps To Manually Test
Please provide us steps to reproduce the scenarios needed to test this. If an integration test is provided, let us know how to run it. If not, enumerate the steps to validate this does what it's supposed to.
Start the operator
Run the thing
Observe X in the spec for the thing
Clean up the thing
Ref SREP-1856