Add root path ingress e2e test
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.
@@ -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))),
