Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Call route53.ListResourceRecordSets with MaxItems = 1 #2039

Merged
merged 1 commit into from Apr 18, 2024

Conversation

max-melentyev
Copy link
Contributor

@max-melentyev max-melentyev commented Apr 15, 2024

Otherwise AWS returns ALL routes with name >= requested one.

Description of your changes

Fetching unnecessary records results in slow & inefficient reconciliations
when account has a lot or route53 resords.

I have:

  • Read and followed Crossplane's contribution process.
  • Run make reviewable test to ensure this PR is ready for review.

How has this code been tested

  • Manual integration testing

Otherwise AWS returns ALL routes with name > requested one.

Signed-off-by: Max Melentyev <max.melentyev@reddit.com>
@max-melentyev
Copy link
Contributor Author

Can there be any case when single returned record won't be enough?

Copy link
Collaborator

@MisterMX MisterMX left a comment

Choose a reason for hiding this comment

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

LGTM. Thank you very much @max-melentyev!

@MisterMX MisterMX merged commit d00d524 into crossplane-contrib:master Apr 18, 2024
9 checks passed
Copy link

Successfully created backport PR #2043 for release-0.47.

@max-melentyev max-melentyev deleted the rrset-api-call branch April 18, 2024 13:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants