Skip to content

Conversation

punkwalker
Copy link
Contributor

@punkwalker punkwalker commented May 19, 2025

What type of PR is this?

/kind feature
/kind cleanup

What this PR does / why we need it:

  • Migrates EKS package to AWS SDK V2.
  • Removes WithCredentialsChainVerboseErrors from V2 sessions of e2e tests as support for it was removed in V2: What happened to CredentialsChainVerboseErrors? aws/aws-sdk-go-v2#98
  • Adds max-wait-managed-resources flag to specify maximum duration to wait for AWS managed resources to be ready. Currently it is respected by AWSManagedControlPlane, AWSManagedMachinePool and EKSAddons.

Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):
Fixes #5404
Special notes for your reviewer:
Part of AWS SDK V2 migration. Ref: #2225

Checklist:

  • squashed commits
  • includes documentation
  • includes emoji in title
  • adds unit tests
  • adds or updates e2e tests

Release note:

Migrate EKS packages to AWS SDK v2

@k8s-ci-robot k8s-ci-robot added do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. kind/feature Categorizes issue or PR as related to a new feature. do-not-merge/release-note-label-needed Indicates that a PR should not merge because it's missing one of the release note labels. kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. labels May 19, 2025
@k8s-ci-robot
Copy link
Contributor

Hi @punkwalker. Thanks for your PR.

I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

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

@k8s-ci-robot k8s-ci-robot added needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. labels May 19, 2025
@damdo damdo linked an issue May 21, 2025 that may be closed by this pull request
@punkwalker punkwalker changed the title WIP: ✨ Migrate EKS packages to AWS SDK v2 ✨ Migrate EKS packages to AWS SDK v2 May 21, 2025
@k8s-ci-robot k8s-ci-robot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label May 21, 2025
@damdo
Copy link
Member

damdo commented May 21, 2025

/ok-to-test

@k8s-ci-robot k8s-ci-robot added ok-to-test Indicates a non-member PR verified by an org member that is safe to test. and removed needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels May 21, 2025
@punkwalker punkwalker force-pushed the eks-aws-sdk-v2-migration branch 2 times, most recently from 2c09599 to 7db7dd1 Compare May 21, 2025 22:31
@k8s-ci-robot k8s-ci-robot added release-note Denotes a PR that will be considered when it comes time to generate release notes. and removed do-not-merge/release-note-label-needed Indicates that a PR should not merge because it's missing one of the release note labels. labels May 21, 2025
@punkwalker
Copy link
Contributor Author

/test pull-cluster-api-provider-aws-test
/test pull-cluster-api-provider-aws-e2e-eks

@punkwalker punkwalker force-pushed the eks-aws-sdk-v2-migration branch from 848c7c5 to d6de30f Compare May 23, 2025 00:26
@punkwalker
Copy link
Contributor Author

/test pull-cluster-api-provider-aws-e2e-eks

1 similar comment
@punkwalker
Copy link
Contributor Author

/test pull-cluster-api-provider-aws-e2e-eks

@punkwalker
Copy link
Contributor Author

/retest


const (
// Maximum duration for waiting on EKS cluster state.
maxActiveUpdateDeleteWait = 15 * time.Minute
Copy link
Member

Choose a reason for hiding this comment

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

Should we make this configurable?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@richardcase Sure. Do you have any opinion on where this should be configurable? As a flag or a field in the AWSManagedControlPlane type?
I feel it should be a field in the type, same way we can have a field for AWSManagedMachinePool.

Copy link
Member

Choose a reason for hiding this comment

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

I would've said flag :) Depends if we want it global or set per cluster. I can't imagine we'd want to change it per cluster....but i could be wrong?

Copy link
Contributor Author

@punkwalker punkwalker May 27, 2025

Choose a reason for hiding this comment

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

We can go with flag, as the value really doesn't matter in happy case. So I will make it a flag which can be used with ControlPlane, MachinePool and Addon alike with 30mins default value. What do you think?

Copy link
Contributor Author

@punkwalker punkwalker May 27, 2025

Choose a reason for hiding this comment

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

Added the flag. Please check @richardcase

@punkwalker
Copy link
Contributor Author

/test pull-cluster-api-provider-aws-e2e-eks

@k8s-ci-robot k8s-ci-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Jun 2, 2025
Signed-off-by: Pankaj Walke <[email protected]>
Signed-off-by: Pankaj Walke <[email protected]>
Signed-off-by: Pankaj Walke <[email protected]>
Signed-off-by: Pankaj Walke <[email protected]>
…EKS resource creation to be ready

Signed-off-by: Pankaj Walke <[email protected]>
@punkwalker punkwalker force-pushed the eks-aws-sdk-v2-migration branch from a960b88 to 8e113d9 Compare June 2, 2025 20:51
@k8s-ci-robot k8s-ci-robot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Jun 2, 2025
Signed-off-by: Pankaj Walke <[email protected]>
@punkwalker punkwalker force-pushed the eks-aws-sdk-v2-migration branch from 6156782 to 9ecc240 Compare June 2, 2025 21:33
@punkwalker
Copy link
Contributor Author

/test pull-cluster-api-provider-aws-e2e-eks

@alexander-demicev
Copy link
Contributor

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Jun 3, 2025
@k8s-ci-robot
Copy link
Contributor

LGTM label has been added.

Git tree hash: 9ca18d0d176eedc769754960aa1f1ca57a390700

@nrb
Copy link
Contributor

nrb commented Jun 3, 2025

/approve

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: nrb

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jun 3, 2025
@k8s-ci-robot k8s-ci-robot merged commit f5dca4c into kubernetes-sigs:main Jun 3, 2025
18 checks passed
@k8s-ci-robot k8s-ci-robot added this to the v2.8 milestone Jun 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. kind/feature Categorizes issue or PR as related to a new feature. lgtm "Looks good to me", indicates that a PR is ready to be merged. needs-priority ok-to-test Indicates a non-member PR verified by an org member that is safe to test. release-note Denotes a PR that will be considered when it comes time to generate release notes. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Migrate eks code to AWS SDK v2
7 participants