@@ -26,17 +26,17 @@ function cleanUp(){
26
26
# Need to recreae aws-load-balancer controller if we are updating SA
27
27
echo " delete aws-load-balancer-controller if exists"
28
28
helm delete aws-load-balancer-controller -n kube-system --timeout=10m || true
29
-
29
+
30
30
echo " delete service account if exists"
31
31
kubectl delete serviceaccount aws-load-balancer-controller -n kube-system --timeout 10m || true
32
-
32
+
33
33
# IAM role and polcies are AWS Account specific, so need to clean them up if any from previous run
34
34
echo " detach IAM policy if it exists"
35
35
aws iam detach-role-policy --role-name $ROLE_NAME --policy-arn arn:${AWS_PARTITION} :iam::$ACCOUNT_ID :policy/AWSLoadBalancerControllerIAMPolicy || true
36
36
37
37
# wait for 10 sec to complete detaching of IAM policy
38
38
sleep 10
39
-
39
+
40
40
echo " delete $ROLE_NAME if it exists"
41
41
aws iam delete-role --role-name $ROLE_NAME || true
42
42
@@ -147,11 +147,11 @@ function run_ginkgo_test() {
147
147
local focus=$1
148
148
echo " Starting the ginkgo tests from generated ginkgo test binaries with focus: $focus "
149
149
if [ " $IP_FAMILY " == " IPv4" ]; then
150
- (CGO_ENABLED=0 GOOS=$OS_OVERRIDE ginkgo $EXTRA_GINKGO_FLAGS --focus=" $focus " -v --timeout 60m --fail-on-pending $GINKGO_TEST_BUILD /ingress.test -- --kubeconfig=$KUBE_CONFIG_PATH --cluster-name=$CLUSTER_NAME --aws-region=$REGION --aws-vpc-id=$VPC_ID --ip-family=$IP_FAMILY || true)
151
- (CGO_ENABLED=0 GOOS=$OS_OVERRIDE ginkgo $EXTRA_GINKGO_FLAGS --focus=" $focus " -v --timeout 60m --fail-on-pending $GINKGO_TEST_BUILD /service.test -- --kubeconfig=$KUBE_CONFIG_PATH --cluster-name=$CLUSTER_NAME --aws-region=$REGION --aws-vpc-id=$VPC_ID --ip-family=$IP_FAMILY || true)
150
+ (CGO_ENABLED=0 GOOS=$OS_OVERRIDE ginkgo --no-color $EXTRA_GINKGO_FLAGS --focus=" $focus " -v --timeout 60m --fail-on-pending $GINKGO_TEST_BUILD /ingress.test -- --kubeconfig=$KUBE_CONFIG_PATH --cluster-name=$CLUSTER_NAME --aws-region=$REGION --aws-vpc-id=$VPC_ID --ip-family=$IP_FAMILY || true)
151
+ (CGO_ENABLED=0 GOOS=$OS_OVERRIDE ginkgo --no-color $EXTRA_GINKGO_FLAGS --focus=" $focus " -v --timeout 60m --fail-on-pending $GINKGO_TEST_BUILD /service.test -- --kubeconfig=$KUBE_CONFIG_PATH --cluster-name=$CLUSTER_NAME --aws-region=$REGION --aws-vpc-id=$VPC_ID --ip-family=$IP_FAMILY || true)
152
152
elif [ " $IP_FAMILY " == " IPv6" ]; then
153
- (CGO_ENABLED=0 GOOS=$OS_OVERRIDE ginkgo $EXTRA_GINKGO_FLAGS --focus=" $focus " --skip=" instance" -v --timeout 60m --fail-on-pending $GINKGO_TEST_BUILD /ingress.test -- --kubeconfig=$KUBE_CONFIG_PATH --cluster-name=$CLUSTER_NAME --aws-region=$REGION --aws-vpc-id=$VPC_ID --ip-family=$IP_FAMILY || true)
154
- (CGO_ENABLED=0 GOOS=$OS_OVERRIDE ginkgo $EXTRA_GINKGO_FLAGS --focus=" $focus " --skip=" instance" -v --timeout 60m --fail-on-pending $GINKGO_TEST_BUILD /service.test -- --kubeconfig=$KUBE_CONFIG_PATH --cluster-name=$CLUSTER_NAME --aws-region=$REGION --aws-vpc-id=$VPC_ID --ip-family=$IP_FAMILY || true)
153
+ (CGO_ENABLED=0 GOOS=$OS_OVERRIDE ginkgo --no-color $EXTRA_GINKGO_FLAGS --focus=" $focus " --skip=" instance" -v --timeout 60m --fail-on-pending $GINKGO_TEST_BUILD /ingress.test -- --kubeconfig=$KUBE_CONFIG_PATH --cluster-name=$CLUSTER_NAME --aws-region=$REGION --aws-vpc-id=$VPC_ID --ip-family=$IP_FAMILY || true)
154
+ (CGO_ENABLED=0 GOOS=$OS_OVERRIDE ginkgo --no-color $EXTRA_GINKGO_FLAGS --focus=" $focus " --skip=" instance" -v --timeout 60m --fail-on-pending $GINKGO_TEST_BUILD /service.test -- --kubeconfig=$KUBE_CONFIG_PATH --cluster-name=$CLUSTER_NAME --aws-region=$REGION --aws-vpc-id=$VPC_ID --ip-family=$IP_FAMILY || true)
155
155
else
156
156
echo " Invalid IP_FAMILY input, choose from IPv4 or IPv6 only"
157
157
fi
@@ -174,4 +174,4 @@ cleanUp
174
174
echo " Delete TargetGroupBinding CRDs if exists"
175
175
kubectl delete -k " github.com/aws/eks-charts/stable/aws-load-balancer-controller//crds?ref=master" --timeout=30m || true
176
176
177
- echo " Successfully finished the test suite $(( $SECONDS / 60 )) minutes and $(( $SECONDS % 60 )) seconds"
177
+ echo " Successfully finished the test suite $(( $SECONDS / 60 )) minutes and $(( $SECONDS % 60 )) seconds"
0 commit comments