Added e2e test to check nginx update pass witth nginx validation webhook after canary promotion

Signed-off-by: Iaroslav Vorozhko <iaroslav.vorozhko@mcmakler.de>
This commit is contained in:
Iaroslav Vorozhko
2021-05-14 12:25:05 +02:00
parent 41481c1ca8
commit d7999e6627
2 changed files with 25 additions and 0 deletions
+1
View File
@@ -14,6 +14,7 @@ helm upgrade -i ingress-nginx ingress-nginx/ingress-nginx --version=${NGINX_HELM
--wait \
--namespace ingress-nginx \
--set controller.metrics.enabled=true \
--set controller.admissionWebhooks.enabled=true \
--set controller.podAnnotations."prometheus\.io/scrape"=true \
--set controller.podAnnotations."prometheus\.io/port"=10254 \
--set controller.service.type=NodePort
+24
View File
@@ -195,6 +195,30 @@ done
echo '✔ Canary promotion test passed'
echo 'Testing original ingress update after canary promotion to pass validation webhook'
cat <<EOF | kubectl apply -f -
apiVersion: networking.k8s.io/v1beta1
kind: Ingress
metadata:
name: podinfo
namespace: test
labels:
app: podinfo
annotations:
kubernetes.io/ingress.class: "nginx"
spec:
rules:
- host: app.example.com
http:
paths:
- backend:
serviceName: podinfo
servicePort: 80
EOF
echo '✔ Original ingress update with validation webhook passed'
cat <<EOF | kubectl apply -f -
apiVersion: flagger.app/v1beta1
kind: Canary