Skip to content

Commit

Permalink
Disable WAF to run tests against YYC. (#3515)
Browse files Browse the repository at this point in the history
  • Loading branch information
orsenthil authored Dec 15, 2023
1 parent 64f624b commit a99cd56
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions scripts/run-e2e-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,12 @@ else
helm repo add eks https://aws.github.io/eks-charts
helm repo update
echo "Install aws-load-balancer-controller"
helm upgrade -i aws-load-balancer-controller eks/aws-load-balancer-controller -n kube-system --set clusterName=$CLUSTER_NAME --set serviceAccount.create=false --set serviceAccount.name=aws-load-balancer-controller --set region=$REGION --set vpcId=$VPC_ID --set image.repository=$IMAGE
if [[ "$REGION" == "ca-west-1" ]]; then
# Disable Shield and WAF temporarily for ca-west-1
helm upgrade -i aws-load-balancer-controller eks/aws-load-balancer-controller -n kube-system --set clusterName=$CLUSTER_NAME --set serviceAccount.create=false --set serviceAccount.name=aws-load-balancer-controller --set region=$REGION --set vpcId=$VPC_ID --set image.repository=$IMAGE --set enableShield=false --set enableWaf=false --set enableWafv2=false
else
helm upgrade -i aws-load-balancer-controller eks/aws-load-balancer-controller -n kube-system --set clusterName=$CLUSTER_NAME --set serviceAccount.create=false --set serviceAccount.name=aws-load-balancer-controller --set region=$REGION --set vpcId=$VPC_ID --set image.repository=$IMAGE
fi
fi

echo_time() {
Expand All @@ -190,7 +195,7 @@ wait_until_deployment_ready() {
fi
echo -n "."
sleep 2
done
done
echo_time "Deployment $1 $NS replicas desired=$desiredReplicas available=$availableReplicas"
}

Expand Down

0 comments on commit a99cd56

Please sign in to comment.