Skip to content

Conversation

@punkwalker
Copy link
Contributor

@punkwalker punkwalker commented Jun 30, 2025

What type of PR is this?
/kind cleanup
/kind deprecation

What this PR does / why we need it:

It migrates ServiceLimiter implementation to comply with AWS SDK V2

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 #
Waiting for task to be created.

Special notes for your reviewer:
This will allow following clients to incorporate ServiceLimiters with AWS SDK V2.

		ec2.ServiceID:                      newEC2ServiceLimiter(),
		elb.ServiceID:                      newGenericServiceLimiter(),
		elbv2.ServiceID:                    newGenericServiceLimiter(),
		resourcegroupstaggingapi.ServiceID: newGenericServiceLimiter(),
		secretsmanager.ServiceID:           newGenericServiceLimiter(),

Usage:

<service>.WithAPIOptions(
			awsmetricsv2.WithMiddlewares(scopeUser.ControllerName(), target),
			awsmetricsv2.WithCAPAUserAgentMiddleware(),
			throttle.WithServiceLimiterMiddleware(session.ServiceLimiter(<service>.ServiceID)),
		)

Checklist:

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

Release note:

 Migrate ServiceLimiters to AWS SDK V2

@k8s-ci-robot k8s-ci-robot added release-note Denotes a PR that will be considered when it comes time to generate release notes. kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. kind/deprecation Categorizes issue or PR as related to a feature/enhancement marked for deprecation. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. labels Jun 30, 2025
@k8s-ci-robot k8s-ci-robot requested a review from Ankitasw June 30, 2025 22:51
@k8s-ci-robot k8s-ci-robot requested a review from cnmcavoy June 30, 2025 22:51
@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/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Jun 30, 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.

@damdo
Copy link
Member

damdo commented Jul 1, 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 Jul 1, 2025
@damdo
Copy link
Member

damdo commented Jul 1, 2025

@punkwalker There's some small linting issue to fix

@punkwalker
Copy link
Contributor Author

@punkwalker There's some small linting issue to fix

Yes. Will fix in a bit. 🙂

Signed-off-by: Pankaj Walke <[email protected]>
@damdo
Copy link
Member

damdo commented Jul 1, 2025

/assign @nrb @richardcase

Copy link
Member

@damdo damdo left a comment

Choose a reason for hiding this comment

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

I am not an expert on these but they look reasonable to me

/lgtm

/assign @nrb @richardcase @AndiDog @dlipovetsky

For approval

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

LGTM label has been added.

Git tree hash: 1d2e5c91a325c36d703cedaad65dc2f286febb35

@nrb
Copy link
Contributor

nrb commented Jul 1, 2025

Awesome, thanks for this. It wasn't obvious to me from the docs on how to incorporate this behavior.

/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 Jul 1, 2025
@phuhung273
Copy link
Contributor

GOMAXPROCS=2 can help unblock release-binaries, but I dont know why 😅

@damdo
Copy link
Member

damdo commented Jul 2, 2025

/retest pull-cluster-api-provider-aws-build-docker

@k8s-ci-robot
Copy link
Contributor

@damdo: The /retest command does not accept any targets.
The following commands are available to trigger required jobs:

/test pull-cluster-api-provider-aws-build
/test pull-cluster-api-provider-aws-build-docker
/test pull-cluster-api-provider-aws-e2e-blocking
/test pull-cluster-api-provider-aws-test
/test pull-cluster-api-provider-aws-verify

The following commands are available to trigger optional jobs:

/test pull-cluster-api-provider-aws-apidiff-main
/test pull-cluster-api-provider-aws-e2e
/test pull-cluster-api-provider-aws-e2e-clusterclass
/test pull-cluster-api-provider-aws-e2e-conformance
/test pull-cluster-api-provider-aws-e2e-conformance-with-ci-artifacts
/test pull-cluster-api-provider-aws-e2e-eks
/test pull-cluster-api-provider-aws-e2e-eks-gc
/test pull-cluster-api-provider-aws-e2e-eks-testing

Use /test all to run the following jobs that were automatically triggered:

pull-cluster-api-provider-aws-apidiff-main
pull-cluster-api-provider-aws-build
pull-cluster-api-provider-aws-build-docker
pull-cluster-api-provider-aws-e2e-blocking
pull-cluster-api-provider-aws-test
pull-cluster-api-provider-aws-verify

In response to this:

/retest pull-cluster-api-provider-aws-build-docker

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.

@damdo
Copy link
Member

damdo commented Jul 2, 2025

/test pull-cluster-api-provider-aws-build-docker

@k8s-ci-robot k8s-ci-robot removed the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Jul 2, 2025
Copy link
Member

@damdo damdo left a comment

Choose a reason for hiding this comment

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

/lgtm

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

LGTM label has been added.

Git tree hash: 0caed964f67185bbc50188fa66d45ddf02b2bef6

@damdo
Copy link
Member

damdo commented Jul 2, 2025

/label tide/merge-method-squash

@k8s-ci-robot k8s-ci-robot added the tide/merge-method-squash Denotes a PR that should be squashed by tide when it merges. label Jul 2, 2025
@k8s-ci-robot k8s-ci-robot merged commit ffa284d into kubernetes-sigs:main Jul 2, 2025
18 checks passed
@k8s-ci-robot k8s-ci-robot added this to the v2.8 milestone Jul 2, 2025
@mdbooth
Copy link
Contributor

mdbooth commented Jul 2, 2025

Setting the goreleaser parallelism to 2 reduced maximum memory consumption of the build-docker job to 4.28G without impacting the runtime of 26m. I think this is a solid change. I'd recommend adding a comment about why the value is there, though, or we'll forget. See #5576 and #5577.

joshfrench pushed a commit to joshfrench/cluster-api-provider-aws that referenced this pull request Jul 2, 2025
* Migrate ServiceLimiters to AWS SDK V2

Signed-off-by: Pankaj Walke <[email protected]>

* fix lint errors

Signed-off-by: Pankaj Walke <[email protected]>

* makefile: bump release-binaries's GOMAXPROCS=2

it was hanging otherwise

---------

Signed-off-by: Pankaj Walke <[email protected]>
Co-authored-by: Damiano Donati <[email protected]>
alam0rt pushed a commit to alam0rt/cluster-api-provider-aws that referenced this pull request Sep 4, 2025
* Migrate ServiceLimiters to AWS SDK V2

Signed-off-by: Pankaj Walke <[email protected]>

* fix lint errors

Signed-off-by: Pankaj Walke <[email protected]>

* makefile: bump release-binaries's GOMAXPROCS=2

it was hanging otherwise

---------

Signed-off-by: Pankaj Walke <[email protected]>
Co-authored-by: Damiano Donati <[email protected]>
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/deprecation Categorizes issue or PR as related to a feature/enhancement marked for deprecation. 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/M Denotes a PR that changes 30-99 lines, ignoring generated files. tide/merge-method-squash Denotes a PR that should be squashed by tide when it merges.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

9 participants