Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions hack/e2e/config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,10 @@ IMAGE_ARCH=${IMAGE_ARCH:-amd64}
DEPLOY_METHOD=${DEPLOY_METHOD:-"helm"}
HELM_CT_TEST=${HELM_CT_TEST:-"false"}
HELM_EXTRA_FLAGS=${HELM_EXTRA_FLAGS:-}
# When using IRSA, eksctl creates the service account
if [[ -n "${USE_IRSA:-}" ]]; then
HELM_EXTRA_FLAGS="${HELM_EXTRA_FLAGS} --set controller.serviceAccount.create=false"
fi
COLLECT_METRICS=${COLLECT_METRICS:-"false"}

TEST_PATH=${TEST_PATH:-"./tests/e2e-kubernetes/..."}
Expand Down
44 changes: 15 additions & 29 deletions hack/e2e/eksctl/cluster.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,44 +19,27 @@ metadata:
region: {{ .Env.REGION }}
version: "{{ .Env.K8S_VERSION }}"
availabilityZones: [{{ .Env.ZONES }}]
autoModeConfig:
enabled: false
iam:
vpcResourceControllerPolicy: true
{{- if env.Getenv "USE_IRSA" }}
withOIDC: true
serviceAccounts:
- metadata:
name: ebs-csi-controller-sa
namespace: kube-system
wellKnownPolicies:
ebsCSIController: true
attachPolicy:
Version: '2012-10-17'
Statement:
- Effect: Allow
Action:
- ec2:CopyVolumes
Resource: "arn:aws:ec2:*:*:volume/vol-*"
- Effect: Allow
Action:
- ec2:CopyVolumes
Resource: "arn:aws:ec2:*:*:volume/*"
Condition:
StringLike:
"aws:RequestTag/ebs.csi.aws.com/cluster": "true"
- Effect: Allow
Action:
- ec2:CopyVolumes
Resource: "arn:aws:ec2:*:*:volume/*"
Condition:
StringLike:
"aws:RequestTag/CSIVolumeName": "*"
- Effect: Allow
Action:
- ec2:CreateTags
Resource:
- "arn:aws:ec2:*:*:volume/*"
Condition:
StringEquals:
"ec2:CreateAction": "CopyVolumes"
{{- else }}
podIdentityAssociations:
- namespace: kube-system
serviceAccountName: ebs-csi-controller-sa
wellKnownPolicies:
ebsCSIController: true
addons:
- name: eks-pod-identity-agent
{{- end }}
managedNodeGroups:
- name: ng-linux
amiFamily: {{ .Env.AMI_FAMILY }}
Expand All @@ -78,6 +61,7 @@ managedNodeGroups:
instanceTypes: [m5.2xlarge]
ssh:
allow: false
enableSsm: true
{{- end }}
nodeGroups:
{{- if env.Getenv "OUTPOST_ARN" }}
Expand All @@ -93,6 +77,7 @@ nodeGroups:
instanceType: {{ .Env.OUTPOST_INSTANCE_TYPE }}
ssh:
allow: false
enableSsm: true
outpostARN: {{ .Env.OUTPOST_ARN }}
{{- end }}
{{- if and (eq .Env.WINDOWS "true") (env.Getenv "WINDOWS_AMI") }}
Expand All @@ -105,4 +90,5 @@ nodeGroups:
instanceType: m5.2xlarge
ssh:
allow: false
enableSsm: true
{{- end }}
2 changes: 0 additions & 2 deletions hack/e2e/eksctl/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,5 @@

controller:
logLevel: 5
serviceAccount:
create: false # let eksctl create it
node:
logLevel: 5