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

feat(s3): add s3 directory bucket #1429

Merged
merged 2 commits into from
Aug 29, 2024

Conversation

haarchri
Copy link
Member

@haarchri haarchri commented Jul 30, 2024

Description of your changes

implement s3 directory bucket (aws_s3_directory_bucket)

Fixes #

I have:

  • Read and followed Crossplane's contribution process.
  • Run make reviewable to ensure this PR is ready for review.
  • Added backport release-x.y labels to auto-backport this PR if necessary.

How has this code been tested

uptest: https://github.com/crossplane-contrib/provider-upjet-aws/actions/runs/10618327577

PASS
15:58:46 [ OK ] running automated tests

@haarchri haarchri marked this pull request as ready for review July 30, 2024 14:00
@haarchri haarchri force-pushed the feature/s3-directory-bucket branch from a26e0e8 to 01316ae Compare July 30, 2024 14:01
@haarchri
Copy link
Member Author

/test-examples="examples/s3/v1beta1/directorybucket.yaml"

Copy link
Collaborator

@turkenf turkenf left a comment

Choose a reason for hiding this comment

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

Thank you @haarchri, left two small comments 🙌

config/externalname.go Outdated Show resolved Hide resolved
examples/s3/v1beta1/directorybucket.yaml Show resolved Hide resolved
@PaulinaZaremba
Copy link

Hi all,

is there any timeline on completing reviews?

Comment on lines +13 to +18
location:
- name: usw2-az1
Copy link
Collaborator

Choose a reason for hiding this comment

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

This looks like a singleton list, which I'm surprised to see here. Perhaps the code which converts it into an embedded object only supports SDK resources, not framework?

Especially since this parameter should go into the external name config, I think we should do the necessary work to make this into an embedded object.

Copy link
Collaborator

Choose a reason for hiding this comment

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

@mbbush, location is indeed a singleton list. Our singleton list conversion implementation processes only Plugin SDK resources. Because Plugin Framework resource schema has a different structure (and type), singleton list detection and conversion should be implemented separately for it.

If I recall correctly though, singleton list fields shouldn't exist in Plugin Framework resources, in the first place, because Plugin Framework schema is able to represent them as embedded objects. Unfortunately, I can't remember why and how at the moment.

Copy link
Collaborator

Choose a reason for hiding this comment

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

A clarification… We traverse schemas of all resources, Plugin Framework and Plugin SDKv2, but our singleton list detector doesn't detect singleton lists of Plugin Framework schemas.

Copy link
Collaborator

Choose a reason for hiding this comment

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

We need to make changes on the upjet side to convert the singleton list to embedded object in the framework resources. I've created an issue for this on upjet, we can follow up from there.

@turkenf
Copy link
Collaborator

turkenf commented Aug 23, 2024

is there any timeline on completing reviews?

Hi @PaulinaZaremba, thank you for your understanding and patience here. We are unable to include PR in this week's release in order to look at the issues mentioned in the reviews in more detail.

We plan to cut a new release next week that includes this PR.

@turkenf
Copy link
Collaborator

turkenf commented Aug 29, 2024

/test-examples="examples/s3/v1beta1/directorybucket.yaml"

@turkenf turkenf force-pushed the feature/s3-directory-bucket branch from c7e4f5e to 01316ae Compare August 29, 2024 15:39
haarchri and others added 2 commits August 29, 2024 18:43
Signed-off-by: Christopher Haar <[email protected]>
Signed-off-by: Fatih Türken <[email protected]>
@turkenf turkenf force-pushed the feature/s3-directory-bucket branch from fa642fb to 71f528f Compare August 29, 2024 15:43
@turkenf
Copy link
Collaborator

turkenf commented Aug 29, 2024

/test-examples="examples/s3/v1beta1/directorybucket.yaml"

Copy link
Collaborator

@turkenf turkenf left a comment

Choose a reason for hiding this comment

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

Thanks @haarchri, LGTM.

@turkenf turkenf merged commit 9d836a3 into crossplane-contrib:main Aug 29, 2024
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants