Skip to content

Commit

Permalink
[backport] add root path ingress e2e test (openservicemesh#4756) (ope…
Browse files Browse the repository at this point in the history
…nservicemesh#4765)

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]>
  • Loading branch information
nshankar13 authored May 26, 2022
1 parent 407bbed commit fff4b0c
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions tests/e2e/e2e_ingressbackend.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,19 @@ func testIngressBackend() {
IngressRuleValue: networkingv1.IngressRuleValue{
HTTP: &networkingv1.HTTPIngressRuleValue{
Paths: []networkingv1.HTTPIngressPath{
// Adding root path due to nginx ingress issue: https://github.com/kubernetes/ingress-nginx/issues/8518
{
Path: "/",
PathType: (*networkingv1.PathType)(pointer.StringPtr(string(networkingv1.PathTypeImplementationSpecific))),
Backend: networkingv1.IngressBackend{
Service: &networkingv1.IngressServiceBackend{
Name: svcDef.Name,
Port: networkingv1.ServiceBackendPort{
Number: serverPort,
},
},
},
},
{
Path: "/status/200",
PathType: (*networkingv1.PathType)(pointer.StringPtr(string(networkingv1.PathTypeImplementationSpecific))),
Expand Down

0 comments on commit fff4b0c

Please sign in to comment.