Skip to content

Commit

Permalink
Test EFS creation time
Browse files Browse the repository at this point in the history
  • Loading branch information
Cheng Pan committed Oct 16, 2019
1 parent dca43c9 commit ae8590d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions hack/run-e2e-test
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ sed -i'' "s,newTag: latest,newTag: \"$IMAGE_TAG\"," deploy/kubernetes/overlays/d
kubectl apply -k deploy/kubernetes/overlays/dev/

echo "Creating EFS file system"
date
aws efs create-file-system --creation-token $TEST_ID --tags Key=KubernetesCluster,Value=$CLUSTER_NAME.k8s.local --region $REGION
FILE_SYSTEM_ID=$(aws efs describe-file-systems --creation-token $TEST_ID --region $REGION | jq -r '.FileSystems[0].FileSystemId')

Expand All @@ -93,6 +94,7 @@ for zone in ${ZONES//,/ }; do
SUBNET_ID=$(aws ec2 describe-subnets --filters Name=tag:Name,Values=$SUBNET_NAME --region $REGION | jq -r '.Subnets[0].SubnetId')
aws efs create-mount-target --file-system-id $FILE_SYSTEM_ID --subnet-id $SUBNET_ID --security-groups $GROUP_ID --region $REGION
done
date

# Run the test
export KUBECONFIG=$HOME/.kube/config
Expand Down

0 comments on commit ae8590d

Please sign in to comment.