From 430b8e69813f73477a78cc868bef696b108e76a1 Mon Sep 17 00:00:00 2001 From: srikiz Date: Tue, 25 Jan 2022 18:56:47 +0530 Subject: [PATCH] fix ingress path when validating webhook for ingress is in place while tests are running --- test/e2e/network/ingress.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/e2e/network/ingress.go b/test/e2e/network/ingress.go index 951d6fc356a..07654bee184 100644 --- a/test/e2e/network/ingress.go +++ b/test/e2e/network/ingress.go @@ -20,6 +20,7 @@ import ( "context" "encoding/json" "fmt" + "math/rand" "path/filepath" "time" @@ -634,7 +635,7 @@ var _ = common.SIGDescribe("Ingress API", func() { IngressRuleValue: networkingv1.IngressRuleValue{ HTTP: &networkingv1.HTTPIngressRuleValue{ Paths: []networkingv1.HTTPIngressPath{{ - Path: "/", + Path: "/testpath/" + fmt.Sprintf("%08x", rand.Int31()), PathType: &prefixPathType, Backend: networkingv1.IngressBackend{ Service: &networkingv1.IngressServiceBackend{