Skip to content
New issue

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

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

Already on GitHub? # to your account

Support alternative partitions in e2e tests #386

Merged
merged 1 commit into from
Feb 21, 2025

Conversation

muddyfish
Copy link
Contributor

Issue #, if available: N/A

Description of changes: Removes hard-coded aws partition, and uses sts getCallerIdentity to retrieve an ARN which can be used to extract the current partition. Additionally, replaces busybox from dockerhub with busybox from ecr public.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@muddyfish muddyfish requested a review from a team as a code owner February 21, 2025 11:15
Copy link
Contributor

@unexge unexge left a comment

Choose a reason for hiding this comment

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

LGTM, thanks @muddyfish!

@muddyfish muddyfish enabled auto-merge February 21, 2025 11:25
Comment on lines -36 to +39
iamPolicyS3FullAccess = "arn:aws:iam::aws:policy/AmazonS3FullAccess"
iamPolicyS3ReadOnlyAccess = "arn:aws:iam::aws:policy/AmazonS3ReadOnlyAccess"
iamPolicyS3NoAccess = "arn:aws:iam::aws:policy/AmazonEC2ReadOnlyAccess" // `AmazonEC2ReadOnlyAccess` gives no S3 access
iamPolicyS3FullAccess = "AmazonS3FullAccess"
iamPolicyS3ReadOnlyAccess = "AmazonS3ReadOnlyAccess"
iamPolicyS3NoAccess = "AmazonEC2ReadOnlyAccess" // `AmazonEC2ReadOnlyAccess` gives no S3 access
Copy link
Contributor

Choose a reason for hiding this comment

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

There is also partition hardcoded in this file: https://github.com/awslabs/mountpoint-s3-csi-driver/blob/main/tests/e2e-kubernetes/scripts/eksctl-patch.json

Do we need to adjust it too?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Possibly - I can't remember how I created my test China cluster

@muddyfish muddyfish added this pull request to the merge queue Feb 21, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Feb 21, 2025
@muddyfish muddyfish added this pull request to the merge queue Feb 21, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to no response for status checks Feb 21, 2025
@unexge unexge added this pull request to the merge queue Feb 21, 2025
Merged via the queue into awslabs:main with commit 262f35b Feb 21, 2025
28 checks passed
@muddyfish muddyfish deleted the e2e-partition branch February 24, 2025 10:03
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants