From 7678c24474dc44dd3755ae6c57d0bf508eb39ee2 Mon Sep 17 00:00:00 2001 From: David Fowler Date: Wed, 29 Apr 2020 09:38:42 -0700 Subject: [PATCH] Fix slash for ingress deployment (#418) - Treat the / the same as empty string for ingress deployments --- src/Microsoft.Tye.Core/KubernetesManifestGenerator.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Microsoft.Tye.Core/KubernetesManifestGenerator.cs b/src/Microsoft.Tye.Core/KubernetesManifestGenerator.cs index 5c237097..8db9d8f7 100644 --- a/src/Microsoft.Tye.Core/KubernetesManifestGenerator.cs +++ b/src/Microsoft.Tye.Core/KubernetesManifestGenerator.cs @@ -88,7 +88,7 @@ namespace Microsoft.Tye // // Therefore our rewrite-target is set to $2 - we want to make sure we have // two capture groups. - if (string.IsNullOrEmpty(ingressRule.Path)) + if (string.IsNullOrEmpty(ingressRule.Path) || ingressRule.Path == "/") { path.Add("path", "/()(.*)"); // () is an empty capture group. }