Skip to content
This repository was archived by the owner on Jul 11, 2023. It is now read-only.

Commit 15f0a18

Browse files
authored
Add root path ingress e2e test (#4756)
Addresses an issue where an ingress without a root path does not work for some non-kind distributions like AKS: kubernetes/ingress-nginx#8518. Adding a wildcard path in addition to the status/200 path resolves the issue. Signed-off-by: nshankar13 <[email protected]>
1 parent 21d3e60 commit 15f0a18

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

tests/e2e/e2e_ingressbackend.go

+13
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,19 @@ func testIngressBackend() {
7979
IngressRuleValue: networkingv1.IngressRuleValue{
8080
HTTP: &networkingv1.HTTPIngressRuleValue{
8181
Paths: []networkingv1.HTTPIngressPath{
82+
// Adding root path due to nginx ingress issue: https://github.com/kubernetes/ingress-nginx/issues/8518
83+
{
84+
Path: "/",
85+
PathType: (*networkingv1.PathType)(pointer.StringPtr(string(networkingv1.PathTypeImplementationSpecific))),
86+
Backend: networkingv1.IngressBackend{
87+
Service: &networkingv1.IngressServiceBackend{
88+
Name: svcDef.Name,
89+
Port: networkingv1.ServiceBackendPort{
90+
Number: serverPort,
91+
},
92+
},
93+
},
94+
},
8295
{
8396
Path: "/status/200",
8497
PathType: (*networkingv1.PathType)(pointer.StringPtr(string(networkingv1.PathTypeImplementationSpecific))),

0 commit comments

Comments
 (0)