-
Notifications
You must be signed in to change notification settings - Fork 35
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks @muddyfish!
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 |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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
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.