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

fix(bucket): also sanitize observed FilterRules.Name of lambda and topic configs #2057

Conversation

wotolom
Copy link
Contributor

@wotolom wotolom commented May 2, 2024

Description of your changes

for Bucket.s3 :

  • add sanitize functions for the observed NotificationConfigurations LambdaFunctionConfigurations and TopicConfigurations (copying the same logic behavior as for QueueConfigurations)

because for these AWS also returns the Filter.Key.FilterRules.Name as "Prefix"/"Suffix" but expects "prefix"/"suffix":
Fixes #2013

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

manually

…pic configs

Signed-off-by: Charel Baum (external expert on behalf of DB InfraGO AG) <charel.baum-extern@deutschebahn.com>
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 @wotolom!

@MisterMX MisterMX merged commit 031d774 into crossplane-contrib:master May 21, 2024
9 checks passed
Copy link

Successfully created backport PR #2063 for release-0.48.

@wotolom wotolom deleted the bucket-fix-notificationConfiguration-diff branch May 21, 2024 14:46
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.

S3 Bucket constantly calls PutBucketNotification with NotificationConfiguration
2 participants