-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Make AWS credentials configurable easily #10868
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,16 @@ | ||
presets: | ||
- env: | ||
# URL to download 'kubectl', required for 'kubectl' calls to EKS (https://docs.aws.amazon.com/eks/latest/userguide/getting-started.html) | ||
# TODO: use upstream 'kubectl' | ||
- name: AWS_K8S_TESTER_EKS_KUBECTL_DOWNLOAD_URL | ||
value: https://amazon-eks.s3-us-west-2.amazonaws.com/1.11.5/2018-12-06/bin/linux/amd64/kubectl | ||
# URL to download 'aws-iam-authenticator', required for 'kubectl' calls to EKS (https://docs.aws.amazon.com/eks/latest/userguide/getting-started.html) | ||
- name: AWS_K8S_TESTER_EKS_AWS_IAM_AUTHENTICATOR_DOWNLOAD_URL | ||
value: https://amazon-eks.s3-us-west-2.amazonaws.com/1.11.5/2018-12-06/bin/linux/amd64/aws-iam-authenticator | ||
# AWS test account credential mounted path, required for AWS API call | ||
# Credentials for using AWS test account 607362164682. | ||
- name: AWS_SHARED_CREDENTIALS_FILE | ||
value: /etc/eks-aws-credentials/eks-aws-credentials | ||
value: /etc/aws-cred/credentials | ||
labels: | ||
preset-kubernetes-e2e-aws-eks-common: "true" | ||
preset-aws-credential: "aws-oss-testing" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. can we put a comment describing what the usage should be? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Done. Added comment above preset definition. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. thanks, this should be a nice step towards being easier to follow the config :-) |
||
volumeMounts: | ||
- mountPath: /etc/eks-aws-credentials | ||
name: eks-aws-credentials | ||
- mountPath: /etc/aws-cred | ||
name: aws-cred | ||
readOnly: true | ||
volumes: | ||
- name: eks-aws-credentials | ||
- name: aws-cred | ||
secret: | ||
secretName: eks-aws-credentials | ||
|
||
|
@@ -28,6 +21,12 @@ presets: | |
# Amazon EKS-optimized AMI (non-GPU, https://docs.aws.amazon.com/eks/latest/userguide/getting-started.html) | ||
- name: AWS_K8S_TESTER_EKS_WORKER_NODE_AMI | ||
value: ami-0a2abab4107669c1b | ||
# URL to download 'kubectl', required for 'kubectl' calls to EKS (https://docs.aws.amazon.com/eks/latest/userguide/getting-started.html) | ||
- name: AWS_K8S_TESTER_EKS_KUBECTL_DOWNLOAD_URL | ||
value: https://amazon-eks.s3-us-west-2.amazonaws.com/1.11.5/2018-12-06/bin/linux/amd64/kubectl | ||
# URL to download 'aws-iam-authenticator', required for 'kubectl' calls to EKS (https://docs.aws.amazon.com/eks/latest/userguide/getting-started.html) | ||
- name: AWS_K8S_TESTER_EKS_AWS_IAM_AUTHENTICATOR_DOWNLOAD_URL | ||
value: https://amazon-eks.s3-us-west-2.amazonaws.com/1.11.5/2018-12-06/bin/linux/amd64/aws-iam-authenticator | ||
labels: | ||
preset-kubernetes-e2e-aws-eks-1-11: "true" | ||
|
||
|
@@ -38,5 +37,11 @@ presets: | |
# Amazon EKS-optimized AMI (non-GPU, https://docs.aws.amazon.com/eks/latest/userguide/getting-started.html) | ||
- name: AWS_K8S_TESTER_EKS_WORKER_NODE_AMI | ||
value: ami-09e1df3bad220af0b | ||
# URL to download 'kubectl', required for 'kubectl' calls to EKS (https://docs.aws.amazon.com/eks/latest/userguide/getting-started.html) | ||
- name: AWS_K8S_TESTER_EKS_KUBECTL_DOWNLOAD_URL | ||
value: https://amazon-eks.s3-us-west-2.amazonaws.com/1.10.11/2018-12-06/bin/linux/amd64/kubectl | ||
# URL to download 'aws-iam-authenticator', required for 'kubectl' calls to EKS (https://docs.aws.amazon.com/eks/latest/userguide/getting-started.html) | ||
- name: AWS_K8S_TESTER_EKS_AWS_IAM_AUTHENTICATOR_DOWNLOAD_URL | ||
value: https://amazon-eks.s3-us-west-2.amazonaws.com/1.10.11/2018-12-06/bin/linux/amd64/aws-iam-authenticator | ||
labels: | ||
preset-kubernetes-e2e-aws-eks-1-10: "true" |
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.
will leave for a follow-up, but perhaps the intention of who should be using this account for what kind of testing? :^)
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.
I'm soon planning to organize all aws testing account creds at a central place under
jobs/sig-aws/
. Working with @krzyzacy to get the prow secrets right. I'll clarify it in follow-up PR.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.
See #10886