Skip to content

Commit 6fd1d31

Browse files
authored
Merge pull request #633 from tam7t/tam7t/aws
tests: aws support for RELEASE tests
2 parents ef4dd2f + cd05f71 commit 6fd1d31

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

test/scripts/initialize_eks_cluster.bash

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,12 @@ CRD_IMAGE_TAG=$ECR_CRD_REGISTRY_URL_WITH_NAME:$IMAGE_VERSION
2020
NAMESPACE="kube-system"
2121
AWS_SERVICE_ACCOUNT_NAME="basic-test-mount-sa"
2222

23-
aws --region $AWS_REGION ecr get-login-password | docker login --username AWS --password-stdin $ECR_REGISTRY_URL
24-
REGISTRY=$ECR_REGISTRY_URL make container
25-
docker push $IMAGE_TAG
26-
docker push $CRD_IMAGE_TAG
23+
if [ -z "$RELEASE" ]; then
24+
aws --region $AWS_REGION ecr get-login-password | docker login --username AWS --password-stdin $ECR_REGISTRY_URL
25+
REGISTRY=$ECR_REGISTRY_URL make container
26+
docker push $IMAGE_TAG
27+
docker push $CRD_IMAGE_TAG
28+
fi
2729

2830
eksctl create cluster --name $EKS_CLUSTER_NAME --node-type m5.large --region $AWS_REGION
2931
eksctl utils associate-iam-oidc-provider --name $EKS_CLUSTER_NAME --approve --region $AWS_REGION
@@ -37,4 +39,7 @@ eksctl create iamserviceaccount \
3739
--approve \
3840
--region $AWS_REGION
3941

40-
REGISTRY=$ECR_REGISTRY_URL make e2e-helm-deploy
42+
# on a release test the caller will perform the driver installation
43+
if [ -z "$RELEASE" ]; then
44+
REGISTRY=$ECR_REGISTRY_URL make e2e-helm-deploy
45+
fi

0 commit comments

Comments
 (0)